Description
Returns the encoding (character set) of the Form or URL scope.
Returns
String; the character encoding of the specified scope.
Category
International functions, System functions
Function syntax
GetEncoding(scope_name) |
See also
cfcontent, cfprocessingdirective, URLDecode, URLEncodedFormat
History
ColdFusion MX: Added this function.
Parameters
Parameter |
Description |
---|---|
scope_name |
|
Usage
Use this function to determine the character encoding of the URL query string or the fields of a form that was submitted to the current page. The default encoding, if none has been explicitly set, is UTF-8.For more information, see www.iana.org/assignments/character-sets.
Example
<!--- This example sends the contents of two fields and interprets them as
|