Partager via


unescape Method (Windows Scripting - JScript)

 

Decodes String objects encoded with the escape method.

Syntax

unescape(charString) 

Remarks

The required charString argument is a String object or literal to be decoded.

The unescape method returns a string value that contains the contents of charstring. 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.

Note

The unescape method should not be used to decode Uniform Resource Identifiers (URI). Use decodeURI and decodeURIComponent methods instead.

Requirements

Version 1

Applies To: Global Object (Windows Scripting - JScript)

See Also

decodeURI Method (Windows Scripting - JScript)
decodeURIComponent Method (Windows Scripting - JScript)
escape Method (Windows Scripting - JScript)
String Object (Windows Scripting - JScript)