File IO

H

hrpreet

Hi all,

I'm trying to read a japanese file, remove junk character in the
begining and then write the contents of the file in new file using
PrintWriter. But the new file created contains junk characters instead
of the japanese characters.
I understand that i need to use unicode .
Can someone help with sample code.
How to proceed.

Thanks
 
R

Roedy Green

I'm trying to read a japanese file, remove junk character in the
begining and then write the contents of the file in new file using
PrintWriter. But the new file created contains junk characters instead
of the japanese characters.
I understand that i need to use unicode .

how about a hex dump of the first bytes of the file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,281
Latest member
Pedroaciny

Latest Threads

Top