Arbortext Command Language > Functions by Alphabetical Listing > url_decode
  
url_decode
string = url_decode (str[, charset])
This function decodes the URL-encoded string str as encoded by url_encode returning its original value. If the optional charset is supplied and the given string contains any URL encoded multi-byte character sequences, then those sequences are decoded back into their original Unicode characters.
The following charset values are supported:
iso8859-1
iso8859-2
iso8859-3
iso8859-4
iso8859-5
iso8859-7
iso8859-8
iso8859-9
ps_ascii
ps_symbol
jeuc
sjis
big5hku
gb2312
koi8
ksc5601
utf-8
Unicode
For example, the following ACL call:
url_decode("A%CE%A9B", "utf-8")
returns the following string:
AΩB
The %CE%A9 sequence is interpreted as a multi-byte character sequence in UTF-8. It was decoded into the Greek Omega symbol (Ω), which is Unicode character 937.
Related Topics
url_encode function