Thanks for your suggestions. 

As you suggested, the file 'neo-runtime.xml' has the UTF-8 encoding as default 
character set. The strange thing is that when I input the below code in a new 
file:
 
        <cfprocessingdirective pageencoding="utf-8">
        <cffile action="write" file="C:\sample.txt" output="objXML = Æ ae Ç à" 
charset="utf-8">

within our system the file output is exactly as expected, and when I preview 
this in a UTF-8 enabled viewer I get the correct output. However, when I modify 
an existing file (within our system) and insert the above two lines, the UTF-8 
encoding seems to be forgetten and I can only encode Unicode characters using 
the CHR function. This is a bit strange. Can you identify why?

So what I am saying is that I must explicitly set the cfprocessingdirective tag 
to store UTF-8 characters, however when I insert this tag in an existing file 
we are still left with this problem but instead we use CHR function to store 
these strings. 

Joseph.

>Joseph Bugeja wrote:
>> Could this be related to the default Java encoding which is Cp1252, and the
>> default locale of en_US. The ColdFusion version used is 8,0,0,176276.
>
>no, cf is in it's own little world--actually we prefer setting up our cf boxes 
>like that even if they'll be serving thai, arabic, or whatever locales. it 
>simplifies things in terms of admin, logging etc. (and its the only solution 
>if 
>you're in tr_TR). though you might double check that nobody's messed w/the cf 
>server's default encoding. see what is in the cf_root/lib/neo-runtime.xml file 
>for the "defaultCharset" property:
>
><var name='defaultCharset'><string>UTF-8</string></var>
>
>if this is changed double check the email encoding too (you can do this via 
>cfadmin).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312889
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to