Character Encoding in Java
<< Unicode Tutorials - Herong's Tutorial Notes
This chapter provides notes and tutorial examples on character encoding in Java. Topics including supported encodings in JDK 1.4.1; using encoding and decoding methods; examples of encoded byte sequences of various encodings.
What Is Character Encoding? Supported Character Encodings in JDK 1.4.1 EncodingSampler.java - Testing encode() Methods Examples of CP1252 and ISO-8859-1 Encodings Examples of US-ASCII, UTF-8, UTF-16 and UTF-16BE Encodings Examples of GB18030 Encoding Testing decode() Methods
What Is Character Encoding?
Supported Character Encodings in JDK 1.4.1
EncodingSampler.java - Testing encode() Methods
Examples of CP1252 and ISO-8859-1 Encodings
Examples of US-ASCII, UTF-8, UTF-16 and UTF-16BE Encodings
Examples of GB18030 Encoding
Testing decode() Methods
Conclusions:
Notes and sample codes presented in this chapter are based on JDK 1.4.1_01.