Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Charset conversion from UTF-8 to windows-1252

843798Dec 18 2006 — edited Dec 21 2006
Getting this conversion to run has taken me 5 hours so far with no usable result!

I have Strings in UTF-8 format that needs to be posted over a socket encoded in charset windows-1252.

Requirements:
- I do not want to write the Strings to a file before i read them back into a string
- I want to create a simple method that inputs a UTF-8 string and returns a windows-1252 encoded string.

The only reason for doing this is that the Norwegian characters ��� does not display correctly on the target system in UTF-8.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 18 2007
Added on Dec 18 2006
4 comments
5,678 views