PDA

View Full Version : weird output from escape()


jmlsteele
07-26-2004, 05:51 PM
Problem: escape() is giving unexpected results.

Example: Ð, ascii code 208, which SHOULD be returned as %D0, is actually being returned as %C3%90.

I saw a post about using system.useCodepage, but that was for reading. Tried it anyways to no avail.

Is there any way I can make escape() behave "normally" or do I have to make the fix in PHP?

jmlsteele

*EDIT*

More information:
I'm using escape() to send binary data to a PHP script, which will unescape it and use it. If someone were to suggest a better solution I could use that too.