"Fix" String encoding in Java
- by Nico
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