GB2312 Tutorials - Herong's Tutorial Examples - Version 4.01, by Dr. Herong Yang
GB2312 vs. Unicode
A quick introduction of GB2312 is provided. Topics include GB2312 character set; Location Codes; Native Codes; Unicode; GBK encoding and Unicode character set.
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.
Last update: 2015.
Table of Contents