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.- Become a Facebook Fan
- Subscribe to Anticlue
- Follow me on Twitter
- Add to Technorati Favorites
- Digg this post



