• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to read file with japanese character in name

 
Krish baskar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20559
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Krish baskar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Krish In " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic