GB2312 Tutorials - Herong's Tutorial Examples - v4.03, by Herong Yang
GB2312 vs. Unicode
GB2312 Character Set is a sub set Unicode Character Set. However the GB2312 code is mathematically unrelated to the Unicode code for the same Chinese character.
GB2312 character set is sub set of Unicode character set. This means that every character defined in GB2312 is also defined in Unicode.
However, GB2312 codes and Unicode codes are totally un-related. For example, GB2312 character with code value of 0xB0A1 has a Unicode code value of 0x554A. There is no mathematical formula to convert a GB2312 code to a Unicode code of the same character.
To help you to convert GB2312 codes to Unicode codes, a complete map of all GB2312 codes and their corresponding Unicode codes is provided later in the book. The corresponding UTF-8 (Unicode Transformation Format - 8-bit) are also listed in the map.
Table of Contents
GB2312 Location Codes and Native Codes
GB2312Unicode.java - GB2312 to Unicode Mapping
GB2312 to Unicode Mapping - Non-Chinese Characters
GB2312 to Unicode Mapping - Level 1 Characters
GB2312 to Unicode Mapping - Level 2 Characters
UnicodeGB2312.java - Unicode to GB2312 Mapping
Unicode to GB2312 Mapping - All 7,445 Characters