473,395 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to decode unescape?

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.

Jun 2 '06 #1
1 3104
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
Jun 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dmitry | last post by:
Code sample: <script> alert("°") document.write("°") </script> Question: How can I force alert() to produce the same result as document.write() ?
1
by: Anders Both | last post by:
What c# method (classes) is similar to javascript : encodeURI(), decodeURI() and escape(), unescape(); Thx,
1
by: Harry Keck | last post by:
Is there a set of methods in the .Net framework that do the same thing as the jscript functions escape and unescape? I get very close with HttpUtility.UrlEncodeUnicode, but it puts "+" for...
2
by: Richard Lewis Haggard | last post by:
Is it possible to use features from XmlDocument to unescape text back to its original raw text format after it has been escaped to handle non-HTML compliant character strings? I have code that...
2
by: cc96ai | last post by:
I got a String &mdash; how could I decode back into HTML which is using Javascript ? I try to use unescape , but no luck on it .
10
by: kyredbone | last post by:
I have no knowledge of programming... I can usually look through a script though and figure out what the idea is. Recently several of my sites got hijacked and below is the code that was inserted,...
2
by: kebal | last post by:
hy friends.. please decode this script. <script language="JavaScript"> ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.