Please Share Feedback


Questions, comments, suggestions? Let us know what you think on our Forum.

To contact us privately, please use our contact form.

Author: Elyse, PMP, CPHIMS
July 13, 2004


Character encoding is CF is a fun thing. If you need to pass variables to java functions that require a different coding standard try manipulating the variable.

First set the variable up in either form or url scope
<cfset FORM.stringvalue = "password string">

Then set the encoding to your desired flavor:

<cfscript>
SetEncoding("FORM", "iso-8859-1");
WriteOutput("FORM.stringvalue is " & FORM.stringvalue & "
");
</cfscript>

Subscribe and Share!

Did you enjoy this article? Your feedback is very important! I'd like to invite you to keep up to date with the latest posts from Anticlue. We offer several venues. If you have some questions, help can be found here.