Hi,

I'm still having a big problem with this application in French, moving from CF 
5.0 to CFMX.
The problem is that all pages and data in the Access database are not in 
Unicode, but in
plain good old iso-8859-1.
CFMX by default is converting every thing in UTF-8.
Explorer understand that it is UTF-8, and text looks ok.
The trouble is that Explorer thinks that the Javascript files are also in 
UTF-8, but since they are not
translated by CF, they are not.

See this example here:
http://diplomes.med.umontreal.ca/test/test.htm
This file just contains
<SCRIPT LANGUAGE="JavaScript" SRC="test.js" TYPE="text/javascript"></SCRIPT>
And the javascript file contains:
alert("�   ");
When you call the htm page, the alert actually shows the character "�"
But when you call test.cfm instead, the alert shows a square, because the � was 
interpreted as a bad UTF-8 string.

If I add the line <cfcontent type="text/html; charset=ISO-8859-1">
in the Application.cfm file, everything looks fine, including Javascript,
BUT now in every record edited on the site, any character higher that 127 is 
replaced by � (7D in hex)
in the database... :-(

Do I also have to put <cfprocessingdirective pageEncoding="ISO-8859-1"> in 
EVERY page?
This looks crazy, I have hundreds of pages and the code must also run on CF 5.0




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191576
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to