User Guide
SetEncoding 833
SetEncoding
Description
Sets the character encoding (character set) of Form and URL scope variable values; used when the
character encoding of the input to a form, or the character encoding of a URL, is not in UTF-8
encoding.
Returns
None
Category
International functions, System functions
Function syntax
SetEncoding(scope_name,charset)
See also
GetEncoding, cfcontent, cfprocessingdirective, URLDecode, URLEncodedFormat;
“Locales” in Chapter 17, “Developing Globalized Applications,” in ColdFusion MX Developer’s
Guide
History
ColdFusion MX: Added this function.
Parameters
Parameter Description
scope_name • url
• form
charset The character encoding in which text in the scope variables is encoded. 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