unescape()

La funci贸n deprecada unescape() calcula un nuevo string  en el cual secuencia de valores hexadecimales son reemplazados con el caracter que representa. La secuencia de calculo deber{ia ser introducida por una funci贸n como escape. Por que unescape est谩 deprecada, usar decodeURI or decodeURIComponent.

Note: Do not use unescape to decode URIs, use decodeURI instead.

Syntax

unescape(str)

Parameters

str
A string to be decoded.

Description

The unescape function is a property of the global object.

Examples

unescape("abc123");     // "abc123"
unescape("%E4%F6%FC");  // "盲枚眉"
unescape("%u0107");     // "膰"

Specifications

Specification Status Comment
ECMAScript 1st Edition (ECMA-262)
La definici贸n de 'unescape' en esta especificaci贸n.
Standard Initial definition.
ECMAScript 5.1 (ECMA-262)
La definici贸n de 'unescape' en esta especificaci贸n.
Standard Defined in the (informative) Compatibility Annex B
ECMAScript 2015 (6th Edition, ECMA-262)
La definici贸n de 'unescape' en esta especificaci贸n.
Standard Defined in the (normative) Annex B for Additional ECMAScript Features for Web Browsers
ECMAScript (ECMA-262)
La definici贸n de 'unescape' en esta especificaci贸n.
Living Standard Defined in the (normative) Annex B for Additional ECMAScript Features for Web Browsers

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help! (en-US)

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)

See also