Strange behaviour with " char
am 29.10.2007 11:58:13 von darioros
Hi. I found a strange behaviour I cannot explain with the ' char. I do
the following:
1) there is a string with ' inside.
2) I encode the string with urlencode, I put it in a $_GET['arg']
variable
3) in the next page (pointed by the link that included the arg param),
I do $str=urldecode($_GET['arg'])
... then ' comes out as '/ ! (?)
Why? In the url arg contains %27 instead of ' ... The thing happens
*even if* I don't use urldecode :O :|
I think there is some processing done by _GET handling but I can't
find anything about this... Plese help :)
bye
Re: Strange behaviour with " char
am 29.10.2007 12:22:32 von AnrDaemon
Greetings, Gotch@.
In reply to Your message dated Monday, October 29, 2007, 13:58:13,
> Hi. I found a strange behaviour I cannot explain with the ' char. I do
> the following:
> 1) there is a string with ' inside.
> 2) I encode the string with urlencode, I put it in a $_GET['arg']
> variable
> 3) in the next page (pointed by the link that included the arg param),
> I do $str=urldecode($_GET['arg'])
> .. then ' comes out as '/ ! (?)
> Why? In the url arg contains %27 instead of ' ... The thing happens
> *even if* I don't use urldecode :O :|
> I think there is some processing done by _GET handling but I can't
> find anything about this... Plese help :)
Provide code example please.
--
Sincerely Yours, AnrDaemon