Solved

Migration Problem: International Characters

Posted on 2003-12-05
3
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…

733 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