This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deal with Unicode file?

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • 0
  • 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?
 
Kirk Bateman
Greenhorn
Posts: 9
  • 0
  • 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
 
Eduardo Marques
Ranch Hand
Posts: 231
  • 0
  • 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?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic