This is because CFMX forces the character set to UTF-8 by default.

Another annoyance of this is when you have Javascript files with special 
characters in messages.
The problem is that when the browser receives a document decalred in 
UTF-8, it also expects
Javascript files included in it to be in encoded in UTF-8.
If, like in my case, you have customers under CF 5 and CFMX, you must 
then maintain Javascript libraries
in both formats ISO-8859 and UTF-8.

So finally UTF-8 is not a handy solution whan all you need is ISO.

I solved the problem with the following code in Application.cfm, which 
makes all my applications
ISO-8859-1 compatible under CF 5 or CFMX :

<CFSET CFversion = listGetAt(server.coldfusion.productVersion, 1)>
<CFIF CFversion GT 5>
    <cfcontent type="text/html; charset=ISO-8859-1">
    <cfset setEncoding("url","ISO-8859-1")>
    <cfset setEncoding("form","ISO-8859-1")>
</CFIF>

-- 
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230832
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