User Guide

URLDecode 897
URLDecode
Description
Decodes a URL-encoded string.
Returns
A copy of a string, decoded.
Category
Conversion functions, Other functions, String functions
Function syntax
URLDecode(urlEncodedString[, charset])
See also
URLEncodedFormat
; “Tags and functions for globalizing” in Chapter 17, “Developing Globalized
Applications, in ColdFusion MX Developers Guide
ColdFusion MX 6.1: Changed the default charset: the default charset is the character encoding of
the URL scope.
ColdFusion MX:
Changed Unicode support: ColdFusion supports the Java UCS-2 representation of Unicode
character values 0–65535. (Earlier releases supported ASCII values.)
Added the charset parameter.
Parameters
Parameter Description
urlEncodedString URL-encoded string or a variable that contains one.
charset The character encoding in which the URL is encoded. Optional.
The following list includes commonly used values:
utf-8
iso-8859-1
windows-1252
us-ascii
shift_jis
iso-2022-jp
euc-jp
euc-kr
big5
euc-cn
utf-16
For more information on character encoding, see:
www.w3.org/International/O-charset.html.
The default value is the character encoding of the URL scope. See
SetEncoding.