File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Unable to read file with japanese character in name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Unable to read file with japanese character in name" Watch "Unable to read file with japanese character in name" New topic
Author

Unable to read file with japanese character in name

Krish baskar
Greenhorn

Joined: Dec 23, 2007
Posts: 10
Hi
I am unable to read contents from a file with japanese characters,though it is encoded.


Below is the output :



Could someone help me out ?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

ISO-8859-1 is Latin-1, as used in Western Europe among others. It can't handle Japanese. Try the proper Japanese encoding.

Also, why are you converting filename like that?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Krish baskar
Greenhorn

Joined: Dec 23, 2007
Posts: 10
Hi
I actually tried with ShiftJIS which is corerct japanese encoding. But it doesnt work.

Also, why are you converting filename like that?

Since in my existing, "ISO-8859-1" has been used, I went with that.


where as file name is "ああ.txt".
Any clues ?
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

"Krish In " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to read file with japanese character in name
 
Similar Threads
Save and retrive file from JSP into BLOB
how to display a applet?
Java Serializable on Servlets
getResource(fileName)
FileNotFoundException when file exists.