iso-8859-1 vs utf-8 java code example
Example 1: how to convert iso-8859-1 to utf-8 in java
byte[] latin1 = ...
byte[] utf8 = new String(latin1, "ISO-8859-1").getBytes("UTF-8");
Example 2: how to convert iso-8859-1 to utf-8 in java
byte[] utf8 = ...
byte[] latin1 = new String(utf8, "UTF-8").getBytes("ISO-8859-1");