Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Certain Chinese Characters not saved properly



We are reading chinese characters from a file and save the bytes into a String.
But once we save it as a String, certain characters are destroyed.
However, if we directly save the bytes into a new file, the characters are still correct. So the problem may be saving as String.

What is the probable cause for this?