L
Lau Lei Cheong
Hello,
I'm writing an application that'll use escape() to encode string and
pass to server-side, than use Urldecode() to regenerate origional strings.
In this fashion I can get rid of the false alarm about invalid characters
that's raised by certain multi-byte characters.
It happens that my javascript will also use the encoded string.But when
I feed the "%XX%XX..." string to the unescape(), it returns garbage because
it treats each "%XX" as distinct characters. and unescape() for unicode
character won't do because it only accept characters in "%uXXXX" format
while my characters should be "%uXXXXXX".
Anyway I can "decrypt" my encoded string? Please suggest them for me.
Thanks a lot.
Regards,
Lau Lei Cheong
I'm writing an application that'll use escape() to encode string and
pass to server-side, than use Urldecode() to regenerate origional strings.
In this fashion I can get rid of the false alarm about invalid characters
that's raised by certain multi-byte characters.
It happens that my javascript will also use the encoded string.But when
I feed the "%XX%XX..." string to the unescape(), it returns garbage because
it treats each "%XX" as distinct characters. and unescape() for unicode
character won't do because it only accept characters in "%uXXXX" format
while my characters should be "%uXXXXXX".
Anyway I can "decrypt" my encoded string? Please suggest them for me.
Thanks a lot.
Regards,
Lau Lei Cheong