In the past, international character sets have been handled rather unsystematically throughout the Java library. The
java.nio package—introduced in Java SE 1.4—unifies character set conversion with the
Charset class. (Note that the
s is lowercase.)
A character set maps between sequences of Unicode characters and byte sequences used in a local character encoding. A popular character encoding is ISO 8859-1, a single-byte encoding of the first 256 Unicode characters. Gaining in importance is ISO 8859-15, which replaces some of the less useful characters of ISO 8859-1 with accented letters used in French and Finnish, and, more importantly, replaces the “international currency” character ¤ with the Euro symbol (€) in code point ...