• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to deal with Unicode file?  RSS feed

 
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

it does work, but if i change UTF-8 to Unicode, it throws a UnsupportedEncodeException, so how to load a unicode file?
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't properly...

You can only open supported file encodings using your method..

the other way is to use \uXXXX unicode codes and convert them when you load



Cheers

Kirk Bateman
Synaptic Technologies Limited
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried with "UCS-2"?

Cheers,
Eduardo

Originally posted by HaoZhe XU:

it does work, but if i change UTF-8 to Unicode, it throws a UnsupportedEncodeException, so how to load a unicode file?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!