• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to read file with japanese character in name  RSS feed

 
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
Posts: 21050
85
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: 2856
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!