Have you tried using cfsetting to set it to latin (iso used here cause it's 
in a snippet?
In App.cfm:
<cfset setEncoding("url","ISO-8859-1")>
<cfset setEncoding("form","ISO-8859-1")>
<cfcontent type="text/html; charset=ISO-8859-1">

On Each Applicable Page:
<cfprocessingdirective pageEncoding="ISO-8859-1">

in form:
enctype="multipart/form-data: charset=ISO-8859-1"

----- Original Message ----- 
From: "Claude Schneegans" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Thursday, January 20, 2005 3:31 PM
Subject: Re: CFMX + UTF8 vs Javascript


> One can see an example here:
> http://diplomes.med.umontreal.ca/testhtm.htm
> The page just contains the string "� �" and call a javascript file which 
> makes an alert with the same string
> With this plain HTML file, it works ok.
>
> Now with the exact same content in CF:
> http://diplomes.med.umontreal.ca/testcfm.cfm
> One can see that the JS alert is not correct.
> This is because the text is in Latin-1, but Explorer tries to interpret it 
> as UTF-8
>
> Both the CFM and HTM files contain this:
> <BODY>� �</BODY>
> <SCRIPT LANGUAGE="JavaScript" SRC="test.js" 
> TYPE="text/javascript"></SCRIPT>
>
> and the JS file contains this:
> alert("� �  ");
>
> When I look at the content sent by the server in the cache, I see that the 
> html file contains the string:
> <BODY>� �</BODY>
> But the CFM file contains:
> <BODY>� �</BODY>
> Because it has been converted to UTF-8
> The javascript file however is not, but Explorer interprets "� �" as UTF-8
>
> --
> _______________________________________
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191282
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to