how to convert iso 8859 1 to utf 8 in java

Solutions on MaxInterview for how to convert iso 8859 1 to utf 8 in java by the best coders in the world

showing results for - "how to convert iso 8859 1 to utf 8 in java"
Guadalupe
19 Jun 2020
1byte[] utf8 = ...
2byte[] latin1 = new String(utf8, "UTF-8").getBytes("ISO-8859-1");
Ivan
30 Jul 2017
1byte[] latin1 = ...
2byte[] utf8 = new String(latin1, "ISO-8859-1").getBytes("UTF-8");