Any time. Glad it's worked out. On 2/27/13 3:56 PM, "Brook Davies" <[email protected]> wrote:
> >Bobby, thanks for the notepad+ idea - it was the encoding on the source >file!!!! > >-----Original Message----- >From: Bobby [mailto:[email protected]] >Sent: February-27-13 12:05 PM >To: cf-talk >Subject: Re: Localization , French Accents... > > >UTF-8 should do it. > >On 2/27/13 3:00 PM, "Brook Davies" <[email protected]> wrote: > >> >>Should I be saving it in Unicode or UTF-8? >> >>-----Original Message----- >>From: Bobby [mailto:[email protected]] >>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" <[email protected]> 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:354722 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

