Unicode Tutorials - Herong's Tutorial Examples - v5.32, by Herong Yang
Examples of GB18030 Encoding
This section provides examples of encoded byte sequences of GB18030 encoding, which is designed to encode Chinese characters.
Let's continue to play with the testing program, EncodingSampler2.java, provided in the previous section with GB18030 encoding for Chinese characters:
C:\herong>java EncodingSampler2 GB18030 GB18030 encoding: Char, String, Writer, Charset, Encoder 00000000, 00, 00, 00, 00 0000003F, 3F, 3F, 3F, 3F 00000040, 40, 40, 40, 40 0000007F, 7F, 7F, 7F, 7F 00000080, 81 30 81 30, 81 30 81 30, 81 30 81 30, 81 30 81 30 000000BF, 81 30 86 37, 81 30 86 37, 81 30 86 37, 81 30 86 37 000000C0, 81 30 86 38, 81 30 86 38, 81 30 86 38, 81 30 86 38 000000FF, 81 30 8B 37, 81 30 8B 37, 81 30 8B 37, 81 30 8B 37 00000100, 81 30 8B 38, 81 30 8B 38, 81 30 8B 38, 81 30 8B 38 00003FFF, 82 32 A6 36, 82 32 A6 36, 82 32 A6 36, 82 32 A6 36 00004000, 82 32 A6 37, 82 32 A6 37, 82 32 A6 37, 82 32 A6 37 00007FFF, C2 52, C2 52, C2 52, C2 52 00008000, D2 AB, D2 AB, D2 AB, D2 AB 0000BFFF, 83 31 D7 34, 83 31 D7 34, 83 31 D7 34, 83 31 D7 34 0000C000, 83 31 D7 35, 83 31 D7 35, 83 31 D7 35, 83 31 D7 35 0000EFFF, 83 38 96 36, 83 38 96 36, 83 38 96 36, 83 38 96 36 0000F000, 83 38 96 37, 83 38 96 37, 83 38 96 37, 83 38 96 37 0000FFFF, 84 31 A4 39, 84 31 A4 39, 84 31 A4 39, 84 31 A4 39 0001F108, 94 38 FB 34, 94 38 FB 34, 94 38 FB 34, 94 38 FB 34 0001F132, 94 39 81 36, 94 39 81 36, 94 39 81 36, 94 39 81 36 0001F1A0, 94 39 8C 36, 94 39 8C 36, 94 39 8C 36, 94 39 8C 36
It looks complicated.
I think that's enough. You can run the test program with any other supported encodings as an argument yourself.
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