Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Certain Chinese Characters not displayed properly.

807580Aug 19 2009 — edited Aug 20 2009
We are retrieving Chinese data from a file and displaying it to our web page. However, for some reason, certain chinese characters are destroyed, thus resulting to 3 different characters instead of 1 character.

I found out that:
If we directly copy the bytes from the file into a new file, the chinese chars can be viewed properly in our web browser.
If we save the bytes into a new String, the chinese is displayed properly but 1 or 2 characters are destroyed (displaying 3 different garbage characters each).

Any idea on how to resolve this? Any help will be appreciated.

Thanks and Regards,
Kerwin
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2009
Added on Aug 19 2009
1 comment
346 views