Sorry, Unicode/utf-8 are the same thing...my mistake.. -----Original Message----- From: Bobby [mailto:bo...@acoderslife.com] Sent: February-27-13 11:01 AM To: cf-talk Subject: Re: Localization , French Accents...
My first guess is that it is happening when the file is read in. Was it saved as unicode? I think notepad lets you do that. If not, notepad++ does. On 2/27/13 12:52 PM, "Brook Davies" <cft...@logiforms.com> wrote: > >I am trying to read in a number of text files that contain translations >(using French in this example) and store them in my applications app >scope. >The file I am reading in looks like this: >http://screencast.com/t/DZTv3iVrbyo > >When I dump the results from reading in the file, or try to use them in >output, the accents get munged: >http://screencast.com/t/aoRcLWWHn > >I have tried everything I can think of to get this to work and >everything has failed. I have tried manually setting the charset on the >CFFILE tag and that has not helped. I tried using UTF-8, and >WINDOWS-1255. > >Since I have numerous language files I have even tried implementing >this java class org.mozilla.universalchardet.UniversalDetector that >detects the encoding of a file, and then using the detected encoding >when reading in the translation files. But no matter what I do, the >encoding is not preserved. >Note, this library tells me my French files are "WINDOWS-1255"./ > >Does anyone have any suggestions on how I can handle this? > >Brook > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354716 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm