Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > how to decode unescape?

Reply
Thread Tools

how to decode unescape?

 
 
mistral
Guest
Posts: n/a
 
      06-02-2006
How to decode code like this?

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

Thanks.

 
Reply With Quote
 
 
 
 
Erwin Moller
Guest
Posts: n/a
 
      06-02-2006
mistral wrote:

> How to decode code like this?
>
> prep_code =
> unescape("%u5590%uBA90%u4142%u4142%uF281%u1111%u11 11%u4190" +
> "%u1139%uFA75%u9090%uF18B%uF88B%u9057%uc933%ub 966" +
> "%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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Combine and Decode YENC Agent777 Firefox 7 05-14-2005 11:22 PM
combine and decode? Gary Firefox 1 01-07-2005 06:53 PM
Combine-and-Decode multipart news posts? William W. Plummer Firefox 0 07-03-2004 12:37 AM
Combine and Decode? Chris Firefox 0 11-28-2003 04:40 PM



Advertisments