Convert string from UTF-8 to ISO 8859-1 in Java
Posted
by Derk
on Stack Overflow
See other posts from Stack Overflow
or by Derk
Published on 2010-04-26T15:01:05Z
Indexed on
2010/04/26
15:03 UTC
Read the original article
Hit count: 234
java
|character-encoding
I want to encode a UTF-8 string to a ISO 8859- string in Java
I have this:
String title = new String(item.getTitle().getText().getBytes("ISO-8859-1"));
But it isn't working, the output is Sørensen for example
© Stack Overflow or respective owner