Solved

Migration Problem: International Characters

Posted on 2003-12-05
3
186 Views
Last Modified: 2013-12-24
Hi,

The situation:
I have a form in a ColdFusion page (note that it's a FORM and NOT a CFFORM).
The user fills out a text box and submits the result to another ColdFusion page.

The Problem:
I used to be running my pages against ColdFusion server Version 4.X and everything was fine. I migrated to a ColdFusion MX server. Now when the form data arrives to the second page (the action page) all the international characters are garbled up. For example "é" becomes "@". I see this using <CFDUMP var=form.textboxName> from the action page.

Obviously the problem is in the international language configuration of the ColdFusion server (since the client PC did not change / Yes I am positive that nothing changed on the client...no new patches...no new browser config...nothing). Did anyone have this problem?
I can't figure out where to change the settings for language under the ColdFusion Administrator.

I got some users comming to use this app in about 2 hours so I rated this high. But even if I can't fix it for today I am still going to need a solution eventualy!

I welcome any and all suggestions.

Thanks
0
Comment
Question by:visorneo
3 Comments
 
LVL 9

Accepted Solution

by:
shooksm earned 500 total points
ID: 9884454
You might try using the ToBase64, ToBinary and ToString functions to manipulate the encoding used by Cold Fusion:

ToBase64 - http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funca108.htm
ToBinary - http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funca109.htm
ToString - http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funca110.htm

The ToString function will let you choose the encoding method as long as it is binary data you are trying to convert.  So in your code you would store ToBinary(ToBase64(FORM.textboxname)) into the database and then use ToString(Query.textboxname, "utf-8") or whatever encoding you actually need.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Google Maps 7 78
AWS New EC2 Instance and EBS Storage 2 79
Nameserver and MX Record 2 71
Redirect to HTTPS results in Infinite LOOP 4 118
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question