O'Reilly logo

Core Java® Volume II—Advanced Features, Ninth Edition by Gary Cornell, Cay S. Horstmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

1.2.4. Character Sets

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required