"Fix" String encoding in Java
Posted
by Nico
on Stack Overflow
See other posts from Stack Overflow
or by Nico
Published on 2010-04-12T14:46:42Z
Indexed on
2010/04/12
15:03 UTC
Read the original article
Hit count: 477
I have a String created from a byte[] array, using UTF8 encoding.
However, it should have been created using another encoding (windows-1252).
Is there a way to convert this string back to the right encoding?
I know it's easy to do if you have access to the original byte array, but it my case it's too late because it's given by a closed source library.
Thanks,
Nico
© Stack Overflow or respective owner