>>I have a bunch of french characters, not even being read from a

>>database, straight text, that will not display properly when thay are
>>inside a .cfm template.

Ah ah, j'ai eu ce probl�me-l� moi aussi mon vieux !
I suppose you are under CFMX, or that you recently moved to CFMX?
The problem is that CFMX is now forcing all text to be UTF-8.
I know it is a real plus, but for us using only European languages for
which ISO-8859-whatever was perfectly doing the job, it is a PITA.
The solutions:
1� use an editor able to create files in UTF-8, and convert all your existing 
files in UTF-8
   (This was suggested here by someone else, so please don't shoot me ;-)
2� add this in your Application.cfm:
<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>
(the test for the version is not mandatory, especially if you have the same 
version on your development and production server.)

I take the opportunity here first to thank the person who gave me the trick, 
secondly to express my anger at MM who didn't put this UTF-8 behavior as an 
option in the CF administrator, and designed it so the new version is not 
compatible with the previous by default.


-- 
_______________________________________
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 (www.logware.us): 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:196739
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