Unescape
Decode a string from the "x-www-form-urlencoded" form.
This is what happens:
-
The ASCII characters 'a' through 'z', 'A' through 'Z', and '0' through '9' remain the same.
-
The unreserved characters - _ . ! ~ * ' ( ) remain the same.
-
The plus sign '+' is converted into a space character ' '.
-
All 3-character strings "%xy" are converted into ASCII characters where xy is the two-digit hexadecimal representation of the character code.
Usage:
Parameters:
x |
The string to be decoded. |
Returns:
Examples:
Unescape ("Peter+Schmidt") // Returns Peter Schmidt
Unescape ("Configuraci%c3%b3n") // Returns Configuración
Unescape ("Friedrichstra%c3%9fe+231%2c+10969+Berlin") // Returns Friedrichstraße 231, 10969 Berlin
See also: