Author
Unable to read file with japanese character in name
Krish baskar
Greenhorn
Joined: Dec 23, 2007
Posts: 10
posted Jul 01, 2009 03:49:18
0
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: 19232
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
How To Ask Questions How To Answer Questions
Krish baskar
Greenhorn
Joined: Dec 23, 2007
Posts: 10
posted Jul 01, 2009 22:10:21
0
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: 2562
"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 |
subject: Unable to read file with japanese character in name