Check out example codes for "how to convert iso-8859-1 to utf-8 in java". It will help you in understanding the concepts better.

Code Example 1

byte[] latin1 = ...
byte[] utf8 = new String(latin1, "ISO-8859-1").getBytes("UTF-8");

Code Example 2

byte[] utf8 = ...
byte[] latin1 = new String(utf8, "UTF-8").getBytes("ISO-8859-1");

Learn ReactJs, React Native from akashmittal.com