Forums Register Login

strange problem writing UTF8

+Pie Number of slices to send: Send
Hi!

I have my data saved as unicode_general_ci in mysql
When I write the data to System.out everything looks ok



I can see the greek characters. However, if i write it to file the encoding is MacRoman? I can't get it to UTF8?




can anyone help me with this?
+Pie Number of slices to send: Send
Maybe the tool you're using to view it expects a Byte Order Mark? Or are the bytes in the file actually the MacRoman-encoded bytes (e.g. 9A for ö) ?
[ May 24, 2007: Message edited by: Ulf Dittmer ]
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 869 times.
Similar Threads
Unicode character swallowing characters after it
How to display russian data properly using S.O.P
UTF-8 format error
An Unicode (UTF8 : right arrow ->) validation
Writing String Data to a File
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:30:40.