Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

strange problem writing UTF8  RSS feed

 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!