Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

special characters

Status
Not open for further replies.

cfvogue

Technical User
Jul 23, 2001
57
0
0
NL
Hi,

I know this issue has been discussed before, but i just don't get it to work and it frustrates me. It's about the strange characters like €,ë,ï under CFMX. I've looked up many helpforums and found some usefull topics.
EG in the cfadministrator i set the "connection string" to 'useUnicode=true&characterEncoding=iso-8859-1'

Also, on the pages needed, i added the following:
<cfprocessingdirective pageencoding=&quot;iso8859-1&quot;>
<cfcontent type=&quot;text/html; charset=iso8859-1&quot;>
<cfset setencoding(&quot;FORM&quot;, &quot;iso8859-1&quot;)>
<cfset setencoding(&quot;URL&quot;, &quot;iso8859-1&quot;)>

It works fine now when i output form variables. Even stuff selected from my databases (mySql) looks fine. However, when i cfhttp to this page (in order to write the source to a htmlpage) the special characters show up as funny squares. The same thing happens when i set a sessionvariable with one of those strange characters and try to insert it into my database later i get an error.

cfserver5 never had this problem. I'm not really happy with it. It's still the same with the latest updates.

PLEASE HELP
chau
 

Chau,

Have you set the charset attribute for CFHTTP?

The default is UTF-8, so by setting it like this:

charset=&quot;ISO-8859-1&quot;

should solve the problem you are having with cfhttp

Hope this helps!

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top