Hi Guys,

We are using ColdFusion 8 with the built-in Java 1.6. When trying to write a 
string that contains UTF-8 characters to a file, these characters are becoming 
stored incorrectly in the file. A sample call issued is the following:

<cffile action="write" file="testfile.txt" output="#chr(198)# and Æ" 
charset="utf-8">

When the file is read back, the chr(198) is correctly being encoded and 
displayed as Æ (= chr(198)) but when the Norwegian character is directly stored 
in the string without converting it to ASCII then instead of the string Æ a 
funny character is being stored in the file. Do you have any ideas on how we 
can solve this? 

Thanks in advance for your kind assistance.

Regards,
Joseph.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:312845
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to