Whatever message this page gives is out now! Go check it out!
SetEncoding(scope,charset) |
Parameter | Description |
scope |
|
charset | The character encoding in which text in the scope variables is encoded. The following list includes commonly used values:
|
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."); WriteOutput("The encoding is " & theEncoding); </cfscript> </cfif> |