Code page 936 (Microsoft Windows)


Windows code page 936, is Microsoft's legacy character encoding for representing simplified Chinese text on computers. It is one of the four Windows DBCSs for East Asian languages, accompanying code pages 932, 949 and 950. It is a variant of the Mainland Chinese Guójiā Biāozhǔn Kuòzhǎn encoding, and roughly corresponds to IBM code page 1386.

History

Originally, Windows-936 covered GB 2312, but it was expanded to cover most of GBK with the release of Windows 95. The Euro sign, not defined in GBK, is encoded as 0x80 in Windows-936 and IBM-1386. On the other hand, 95 characters defined in GBK 1.0 were initially not encoded into Windows-936. This is partly resolved in later versions of Windows and, as in Windows 7, all GBK characters not in the Unicode BMP Private Use Area can be displayed using code page 936, but encoding the 95 characters was still not supported as of 2014.
Windows code page 936 was superseded by code page 54936, but as of 2014 was still prevalent in use. The Windows console uses code page 936 as the default code page for simplified Chinese installations, although part of the GB 18030 was made mandatory for all software products sold in China. In 2002, the IANA Internet name GBK was registered with Windows-936's mapping, making it the de facto GBK definition on the Internet.

Terminology

The name "code page 936" is ambiguous. IBM's code page 936,, an obsolete IBM 5550 encoding, is also a Simplified Chinese encoding, but uses a different encoding method for , and so is entirely incompatible with Windows code page 936 —although International Components for Unicode does not include an IBM-936 codec, and uses the Windows code page for the label. IBM's code page for GBK coverage is code page 1386, which is defined as a combination of the single byte Code page 1114 and the double byte Code page 1385.
The concepts of "Windows-936", "GBK", "GB2312" and "EUC-CN" are sometimes conflated in various software products. EUC-CN is registered with the IANA as, although it is a specific, variable-width 8-bit stateless, encoding format of .
Since GBK is a superset of EUC-CN and superseded long ago, and since Microsoft software continued to assign the encoding label to code page 936 even after extending it to implement GBK rather than EUC-CN, most modern-day Windows-based software products mean partial support for GBK via Windows-936, rather than EUC-CN or other encoding formats of GB 2312, when they use the term "GB 2312" as a character encoding option. This can be observed in products such as Microsoft Internet Explorer and Notepad++.