Hi

When I send a query parameter on a URL to Active4D of %A3 it does not seem to come through correctly (i.e. a strange control character arrives).

On the other hand, when I send %C2%A3 it does come through correctly as a UK pound sign.

Can anyone help me out by explaining why the second form worked ? (I don't know what I'm doing by adding the %C2 - I picked it up from a piece of a PHP thread where another guy was having related problems).

i.e.

www.mysite.com?myvar=%A3               <-- fails
www.mysite.com?myvar=%C2%A3 <-- succeeds. The A4D script receives a £ sign.

3 Things:

[1] Sorry for my ignorance on encoding - I'm trying to fill in some total black holes in my knowledge

[2] I realise I could be using a far more robust value for the variable data (i.e. low Ascii) and will do this presently but wouldn't mind using this example to increase my understanding of what's happening at a bits & bytes level

[3] I also realise that UTF-8 is the way forward and am in the process of moving the whole site to UTF-8 but again, I think I'd like to understand more of what's behind the issues I have at the moment before I do that

Many thanks

Peter

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to