how to decode unescape?

Discussion in 'Javascript' started by mistral, Jun 2, 2006.

  1. mistral

    mistral Guest

    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.
    mistral, Jun 2, 2006
    #1
    1. Advertising

  2. mistral

    Erwin Moller Guest

    mistral wrote:

    > 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
    Erwin Moller, Jun 2, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SGFycnkgS2Vjaw==?=

    What is the .Net equivalent of jscript escape/unescape?

    =?Utf-8?B?SGFycnkgS2Vjaw==?=, Mar 9, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    3,837
    =?Utf-8?B?VGltIFN0YWxs?=
    Mar 9, 2005
  2. jesusR

    unescape in ASP.NET

    jesusR, Dec 15, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    12,832
    jesusR
    Dec 15, 2005
  3. Rares Vernica

    unescape HTML entities

    Rares Vernica, Oct 28, 2006, in forum: Python
    Replies:
    4
    Views:
    863
    Klaus Alexander Seistrup
    Nov 1, 2006
  4. Fredrik Lundh

    Re: unescape HTML entities

    Fredrik Lundh, Oct 29, 2006, in forum: Python
    Replies:
    0
    Views:
    440
    Fredrik Lundh
    Oct 29, 2006
  5. Rares Vernica

    Re: unescape HTML entities

    Rares Vernica, Nov 2, 2006, in forum: Python
    Replies:
    0
    Views:
    397
    Rares Vernica
    Nov 2, 2006
Loading...

Share This Page