how to decode unescape?

M

mistral

How to decode code like this?

prep_code =
unescape("%u5590%uBA90%u4142%u4142%uF281%u1111%u1111%u4190" +
"%u1139%uFA75%u9090%uF18B%uF88B%u9057%uc933%ub966" +
"%u002d%ua5F3%u9090%u905f%ue7ff")

Thanks.
 
E

Erwin Moller

mistral said:
How to decode code like this?

prep_code =
unescape("%u5590%uBA90%u4142%u4142%uF281%u1111%u1111%u4190" +
"%u1139%uFA75%u9090%uF18B%uF88B%u9057%uc933%ub966" +
"%u002d%ua5F3%u9090%u905f%ue7ff")

Thanks.

You just did.
unescap()e decodes back to what escape() encoded.
var test = "abc#;'/";
var testEscaped = escape(test);
var testUnescaped(testEscaped);

testUnescaped contains now the same a test did.

So if you want to know what your escaped string contained, just look into
prep_code.

Regards,
Erwin Moller
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top