User Guide

Table Of Contents
Tags and functions for globalizing 413
Tags and functions for globalizing
ColdFusion MX supplies many tags and functions that you can use to develop globalized
applications.
Tags and functions for controlling character encoding
The following tags and functions let you specify the character encoding of text that ColdFusion
generates and interprets:
Tag or function Attribute or
parameter
Use
cfprocessingdirective
pageencoding Specifies the encoding of a ColdFusion page so
ColdFusion can parse it. For more information, see
“Determining the character encoding of a
ColdFusion page” on page 411.
cfcontent
type Specifies the encoding in which to return the results
to the client browser. For more information, see
“Determining the page encoding of server output”
on page 412.
cffile
charset Specifies how to encode data written to a file, or the
encoding of a file being read. For more information,
see “File data” on page 419.
cfheader
charset Specifies the character encoding in which to encode
the HTTP header value.
cfhttp
charset Specifies the character encoding of the HTTP
request.
cfhttpparam
mimeType Specifies the MIME media type of a file; can
positionally include the file’s character encoding.
cfmail
charset Specifies the character encoding of the mail
message, including the headers.
cfmailpart
charset Specifies the character encoding of one part of a
multipart mail message.
cfprocessingdirective
pageEncoding Identifies the character encoding of the contents of a
page to be processed by ColdFusion MX..
CharsetDecode encoding Converts a string in the specified encoding to a
binary object.
CharsetEncode encoding Converts a binary object to a string in the specified
encoding.
GetEncoding
Returns the character encoding of text in the Form or
URL scope.
SetEncoding
charset Specifies the character encoding of text in the Form
or URL scope. Used when the character set of the
input to a form, or the character set of a URL, is not in
UTF-8 encoding.