This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

unescape

Summary

Deprecated

The deprecated unescape() function decodes a string that is usually encoded with the escape function.

Syntax

unescape(str)
str
Required. A String to be decoded

Examples

unescape("webplatform"); // "webplatform"
unescape("%FCmlaut"); // "ümlaut"
unescape("%u65E5%u672C%u8A9E"); // "日本語"

Remarks

All characters encoded with the % xx hexadecimal form are replaced by their ASCII character set equivalents.

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

Notes

Do not use the unescape function to decode URIs. Use decodeURI and decodeURIComponent functions instead.

This function is deprecated and not recommended for use in new projects. Use with caution.

See also

Related articles

Deprecated

Other articles

Attributions

  • Microsoft Developer Network: Article