Posted by yawnmoth on 10/24/05 02:22
Any ideas as to why urlencode(addslashes(chr(0))) returns '%5C0'? It
seems like it should return '%00' since that's what urlencode(chr(0))
returns. If not that, I could also see it returning '%5C%00' since
that's what urlencode('\\').urlencode(chr(0)) and
urlencode('\\'.chr(0)) return. '%5C0', however, confuses me. Even
urlencode(chr(0x5C0)) doesn't return '%5C0' - it returns '%C0'.
[Back to original message]
|