Section 24.186. unescape( ): decode an escaped string


24.186. unescape( ): decode an escaped string

ECMAScript v1; deprecated in ECMAScript v3

24.186.1. Synopsis

 unescape(s) 

24.186.1.1. Arguments

s

The string that is to be decoded or "unescaped."

24.186.1.2. Returns

A decoded copy of s.

24.186.2. Description

unescape( ) is a global function that decodes a string encoded with escape( ). It decodes s by finding and replacing character sequences of the form %xx and %uxxxx (where x represents a hexadecimal digit) with the Unicode characters \u00xx and \uxxxx.

Although unescape( ) was standardized in the first version of ECMAScript, it has been deprecated and removed from the standard by ECMAScript v3. Implementations of ECMAScript are likely to implement this function, but they are not required to. You should use decodeURI( ) and decodeURIComponent( ) instead of unescape( ). See escape( ) for more details and an example.

24.186.3. See Also

decodeURI( ), decodeURIComponent( ), escape( ), String




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net