aspose file tools*
The moose likes Java Micro Edition and the fly likes How to deal with Unicode file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to deal with Unicode file?" Watch "How to deal with Unicode file?" New topic
Author

How to deal with Unicode file?

HaoZhe Xu
Ranch Hand

Joined: Nov 03, 2003
Posts: 222

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


[url]Olnex.net[/url]
[SCJP 1.2, SCJD, SCWCD]
Kirk Bateman
Greenhorn

Joined: Oct 13, 2004
Posts: 9
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

Joined: Feb 19, 2005
Posts: 231
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?


Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to deal with Unicode file?
 
Similar Threads
A strange unicode String literal problem
Problems With Japanese Text
Help required to read binary file
Unicode CSV file.
Unicode Streams