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!

Convert a UTF-8 string to ISO-8859-1 string

807569May 29 2006 — edited May 29 2006
Hello. As you can see from my other post, I am working on internationalization. I could not find an appropriate entry in the forum already.

I want to convert form data (submitted from an HTML UTF-8 charset page) from the UTF-8 format to ISO-8859-1 format. How do I do that?


I.e.

String utfFormat="視聴者";
String isoFormat="";
// Do magic here
System.out.println(isoFormat); // out: "しての" (or whatever it is)


Can you help?

Dailysun

null
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 26 2006
Added on May 29 2006
3 comments
721 views