MACROMEDIA COLDFUSION MX 61-CFML Reference page 675

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

www.iana.org/assignments/character-sets is a complete list of character sets names used on the
Internet, maintained by the Internet Assigned Numbers Authority.
java.sun.com/j2se/1.4.1/docs/guide/intl/encoding.doc.html lists the character encoding that
Java 1.4.1, and therefore the default ColdFusion configuration, can interpret. If you use a JVM
that does not conform to the Sun Java 2 Platform, Standard Edition, v 1.4.1, the supported
locales may differ. The list uses Java internal names, not the IANA character encoding names
that you normally use in the
attributes and parameters. Java automatically converts standard IANA names to its internal
names as needed.
Example
<!--- This example sends and interprets the contents of two fields as
big5 encoded text. Note that the form fields are received as URL variables
because the form uses the GET method. --->
<cfcontent type="text/html; charset=big5">
<form action='#cgi.script_name#' method='get'>
<input name='xxx' type='text'>
<input name='yyy' type='text'>
<input type="Submit" value="Submit">
</form>
<cfif IsDefined("URL.xxx")>
<cfscript>
SetEncoding("url", "big5");
WriteOutput("URL.XXX is " & URL.xxx & "<br>");
WriteOutput("URL.YYY is " & URL.yyy & "<br>");
theEncoding = GetEncoding("URL");
WriteOutput("The URL variables were decoded using '" &
theEncoding & "' encoding.");
</cfscript>
</cfif>
SetEncoding charset
parameter and other ColdFusion
SetEncoding
675

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents