Unicode Tutorials - Herong's Tutorial Examples - v5.32, by Herong Yang
Testing decode() Methods
This section describes 4 different methods provided in Java to decode byte sequences back to characters with a given encoding.
There are 4 methods provided in Java 11 to decode characters:
The way to use those methods is similar to encode methods described in previous sections.
Exercise: Write a Java program to decode byte sequences back to Unicode character code points.
Table of Contents
ASCII Character Set and Encoding
GB2312 Character Set and Encoding
GB18030 Character Set and Encoding
JIS X0208 Character Set and Encodings
UTF-8 (Unicode Transformation Format - 8-Bit)
UTF-16, UTF-16BE and UTF-16LE Encodings
UTF-32, UTF-32BE and UTF-32LE Encodings
Python Language and Unicode Characters
Java Language and Unicode Characters
List of Supported Character Encodings in Java
EncodingSampler.java - Testing encode() Methods
Examples of CP1252 and ISO-8859-1 Encodings
Examples of US-ASCII, UTF-8, UTF-16 and UTF-32 Encodings
Encoding Conversion Programs for Encoded Text Files
Using Notepad as a Unicode Text Editor
Using Microsoft Word as a Unicode Text Editor