Description
URLDecode takes a string that contains encoding for spaces and special characters and returns a decoded version of that string.
Overloads
URLDecode (inputString, encodingScheme)
URLDecode (inputString, encodingScheme, characterSet)
Arguments
inputString is a string containing the encoded URL that you want to decode.
encodingScheme is an integer specifying the scheme that you want to use to decode the string:
0 specifies URL encoding—following RFC 1738
1 specifies HTML form encoding—following application/x-www-form-urlencoded
2 specifies user-defined encoding—only alphanumeric characters are left unencoded by default.
If encodingScheme is not specified, the default is 0 (URL encoding).
characterSet is an integer specifying the character encoding (codepage) that you want to use:
If characterSet is not specified, the default is 0 (UTF-8 encoding).
Returns
A string that contains the URL-decoded version of your input string.
Action
URLDecode takes a string that contains encoding for spaces and special characters and returns a decoded version of that string.
Examples
URLDecode ("http://your+site.com", 0)
Returns http://your+site.com
URLDecode ("http://your+site.com", 1)
Returns http://your site.com
Comments
For URLEncode and URLDecode to be the inverse of each other, URLDecode need only know what character encoding to use and how to treat the + character (that is, whether to leave it alone or turn it into a space). For this reason, the encodingScheme parameter is necessary.