next up previous contents
Next: eval Up: Methods Previous: escape   Contents


unescape

Description

Decodes String objects encoded with the escape method.


Syntax

unescape(x)


Parameters

x
A string with hexadecimal sequences to escape.


Returns

The unescape method returns a new string that contains the contents of x. All characters encoded with the %xx hexadecimal form are replaced by their ASCII character set equivalents.

Characters encoded in %uxxxx format (Unicode characters) are replaced with the Unicode character with hexadecimal encoding xxxx.


Examples

unescape("Hello%7B%5BWorld%5D%7D")
//The result is: Hello{[World]}




Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.