JS-encoded scape decoding Unescape

Source: Internet
Author: User

STR = escape (yourstr) yourstr = Unescape (STR)

The backend uses UTF-8 by default, so no decryption is required to jump from js to the backend.


<A target = '_ blank' href = 'wxdown. aspx? Down = "+ escape (d_dl.rows [I]. Address) +" '> download </a>


String down = request. querystring ["down"]. tostring ();

Due to Chinese garbled characters, use JS encoding and decode them to the background to avoid garbled characters.

It was originally said that vs decoding is a problem after JS encoding. Later I saw that it was not decoded.

Lucky to be a success

But I think it's a coincidence that Baidu is trying to decode it.

It turns out that I have configured UTF-8 encoding, so no decoding is required.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.