# Code page 936 (Microsoft Windows)

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Code_page_936_(Microsoft_Windows)
> Markdown URL: https://mediated.wiki/source/Code_page_936_(Microsoft_Windows).md
> Source: https://en.wikipedia.org/wiki/Code_page_936_(Microsoft_Windows)
> Source revision: 1315213073
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

Windows character set for Simplified Chinese

Windows code page 936 MIME / IANA GBK Languages Mainly used for Simplified Chinese, but also supports Traditional Chinese, Japanese, English, Russian and (partially) Greek. Classification GBK variant, Extended ASCII,[a] variable-width encoding, CJK encoding Extends EUC-CN Based on GBK (GB 13000.1-93 annex) Succeeded by Code page 54936 (GB 18030) ^ Not in the strictest sense of the term, as ASCII bytes can appear as trail bytes.

**Windows code page 936** (abbreviated **MS936**, **Windows-936** or ([ambiguously](/source/Code_page_936_(IBM))) **CP936**),[1] is [Microsoft](/source/Microsoft)'s legacy (pre-[Unicode](/source/Unicode)) [character encoding](/source/Character_encoding) for representing [simplified Chinese](/source/Simplified_Chinese) text [on computers](/source/Chinese_character_IT). It is one of the four Windows [DBCSs](/source/DBCS) for [East Asian languages](/source/East_Asian_languages), accompanying code pages [932](/source/Code_page_932_(Microsoft_Windows)) ([Japanese](/source/Japanese_language)), [949](/source/Unified_Hangul_Code) ([Korean](/source/Korean_language)) and [950](/source/Code_page_950) ([Traditional Chinese](/source/Traditional_Chinese)). It is a variant of the [Mainland](/source/Mainland_China) Chinese [*Guójiā Biāozhǔn Kuòzhǎn* (GBK)](/source/GBK_(character_encoding)) encoding, and roughly corresponds to **IBM code page 1386** (**CP1386** or **IBM-1386**).

## History

Originally, Windows-936 covered [GB 2312](/source/GB_2312) (in its [EUC-CN](/source/EUC-CN) form), but it was expanded to cover most of [GBK](/source/GBK_(character_encoding)) with the release of [Windows 95](/source/Windows_95). The [Euro sign](/source/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](/source/Private_Use_Area) can be displayed using code page 936, but encoding the 95 characters was still not supported as of 2014[\[update\]](https://en.wikipedia.org/w/index.php?title=Code_page_936_(Microsoft_Windows)&action=edit).

Windows code page 936 was superseded by [code page 54936](/source/Code_page_54936) ([GB 18030](/source/GB_18030)), but as of 2014[\[update\]](https://en.wikipedia.org/w/index.php?title=Code_page_936_(Microsoft_Windows)&action=edit) was still prevalent in use. The [Windows console](/source/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,[2][3] making it the *de facto* GBK definition on the Internet.

## Terminology

Windows code page 936 corresponds roughly to IBM code page 1386, and is a different encoding from the obsolete IBM code page 936.

The name "code page 936" is ambiguous. [IBM's code page 936](/source/Code_page_936_(IBM)),[4], an obsolete [IBM 5550](/source/IBM_5550) encoding, is also a Simplified Chinese encoding, but uses a different encoding method for GB 2312 ([Shift GB](/source/Shift_GB)), and so is entirely incompatible with Windows code page 936 (in contrast to [IBM code page 932](/source/Code_page_932_(IBM)) being, to a first approximation,[a] a subset of [Windows code page 932](/source/Windows-31J))—although [International Components for Unicode](/source/International_Components_for_Unicode) does not include an IBM-936 codec, and uses the Windows code page for the cp936 label.[1] IBM's code page for GBK coverage is code page 1386, which is defined as a combination of the single byte [Code page 1114](/source/Code_page_1114) and the double byte **Code page 1385**.[5]

The concepts of "Windows-936", "GBK", "GB2312" and "EUC-CN" are sometimes conflated in various software products. [EUC-CN](/source/EUC-CN) is registered with the [IANA](/source/IANA) as GB2312, although it is a specific, [variable-width](/source/Variable-width_encoding) 8-bit [stateless](/source/State_(computer_science)), encoding format of GB 2312 (which also has other, less widely used, encoding formats such as [HZ-GB-2312](/source/HZ-GB-2312), [ISO-2022-CN](/source/ISO-2022-CN) or the aforementioned Shift GB).

Since GBK is a superset of EUC-CN (although not itself an EUC code) and superseded GB 2312 long ago, and since Microsoft software continued to assign the GB2312 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++.

## Footnotes

1. **[^](#cite_ref-6)** If the [character variant swaps from 1983](/source/JIS_X_0208#Second_standard) are ignored.

## References

1. ^ [***a***](#cite_ref-icuw936_2-0) [***b***](#cite_ref-icuw936_2-1) ["windows-936-2000 (alias cp936)"](https://ssl.icu-project.org/icu-bin/convexp?conv=cp936). *ICU Demonstration - Converter Explorer*. International Components for Unicode.[*[dead link](https://en.wikipedia.org/wiki/Wikipedia:Link_rot)*]

1. **[^](#cite_ref-iana_3-0)** ["Character Sets"](https://www.iana.org/assignments/character-sets/character-sets.xhtml). Retrieved 3 October 2016.

1. **[^](#cite_ref-4)** [Application of IANA Charset Registration for GBK](https://www.iana.org/assignments/charset-reg/GBK)

1. **[^](#cite_ref-5)** ["Coded character set identifiers - CCSID 936"](https://web.archive.org/web/20141201215020/http://www-01.ibm.com/software/globalization/ccsid/ccsid936.html). *IBM Globalization*. IBM. Archived from [the original](http://www-01.ibm.com/software/globalization/ccsid/ccsid936.html) on 2014-12-01.

1. **[^](#cite_ref-7)** ["Coded character set identifiers - CCSID 1386"](https://web.archive.org/web/20141129223510/http://www-01.ibm.com/software/globalization/ccsid/ccsid1386.html). IBM. Archived from [the original](http://www-01.ibm.com/software/globalization/ccsid/ccsid1386.html) on 2014-11-29.

## External links

Windows-936:

- [Microsoft's reference for Windows-936](https://msdn.microsoft.com/en-us/library/cc194913.aspx)

- [Code page file for Windows-936](https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit936.txt)

- [Mapping of Windows-936 to Unicode](https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP936.TXT)

- [ICU demonstration of Windows-936](http://demo.icu-project.org/icu-bin/convexp?conv=windows-936)

- [International Components for Unicode (ICU), windows-936-2000.ucm](https://github.com/unicode-org/icu/blob/master/icu4c/source/data/mappings/windows-936-2000.ucm)

IBM-1386:

- [IBM's documentation for IBM-1386](https://web.archive.org/web/20141129223510/http://www-01.ibm.com/software/globalization/ccsid/ccsid1386.html)

- [ICU demonstration of IBM-1386](http://demo.icu-project.org/icu-bin/convexp?conv=ibm-1386)

- [ICU mapping of IBM-1386 to Unicode](http://icu-project.org/repos/icu/data/trunk/charset/data/ucm/ibm-1386_P110-1997.ucm)

v t e Character encodings Early telecommunication Telegraph code Needle Morse Non-Latin Wabun/Kana Chinese Cyrillic Baudot and Murray Fieldata ASCII ISO/IEC 646 BCDIC Teletex and Videotex/Teletext T.51/ISO/IEC 6937 ITU T.61 ITU T.101 World System Teletext background sets Transcode ISO/IEC 8859 Approved parts -1 (Western Europe) -2 (Central Europe) -3 (Maltese/Esperanto) -4 (North Europe) -5 (Cyrillic) -6 (Arabic) -7 (Greek) -8 (Hebrew) -9 (Turkish) -10 (Nordic) -11 (Thai) -13 (Baltic) -14 (Celtic) -15 (New Western Europe) -16 (Romanian) Abandoned parts -12 (Devanagari) Proposed but not approved KOI-8 Cyrillic Sámi Adaptations Welsh Estonian Ukrainian Cyrillic Bibliographic use MARC-8 ANSEL CCCII/EACC ISO 5426 5426-2 5427 5428 6438 6862 National standards ArmSCII Big5 BraSCII BSCII CNS 11643 DIN 66003 ELOT 927 GOST 10859 GB 2312 GB 12345 GB 12052 GB 18030 HKSCS ISCII JIS X 0201 JIS X 0208 JIS X 0212 JIS X 0213 KOI-7 KPS 9566 KS X 1001 KS X 1002 LST 1564 LST 1590-4 PASCII Shift JIS SI 960 TIS-620 TSCII VISCII VSCII YUSCII ISO/IEC 2022 ISO/IEC 8859 ISO/IEC 10367 Extended Unix Code (EUC) Code pages Mac OS ("scripts") Armenian Arabic Barents Cyrillic Celtic Central European Croatian Cyrillic Devanagari Font X (Kermit) Gaelic Georgian Greek Gujarati Gurmukhi Hebrew Iceland Inuit Keyboard Latin (Kermit) Maltese/Esperanto Ogham Roman Romanian Sámi Turkish Turkic Cyrillic Ukrainian VT100 DOS 437 737 850 858 861 862 863 864 865 866 867 868 869 899 904 932 936 942 949 950 951 1040 1043 1046 1098 1115 1116 1117 1118 1127 ABICOMP CS Indic CSX Indic CSX+ Indic CWI-2 Iran System Kamenický Mazovia MIK IBM AIX 895 896 912 915 921 922 1006 1008 1009 1010 1012 1013 1014 1015 1016 1017 1018 1019 1046 1133 Windows CER-GS 932 936 (GBK) 950 Extended Latin-8 1250 1251 1252 1253 1254 1255 1256 1257 1258 1270 Cyrillic + French Cyrillic + German Polytonic Greek EBCDIC Japanese language in EBCDIC DKOI DEC terminals (VTx) Multinational (MCS) National Replacement (NRCS) French Canadian Swiss Spanish United Kingdom Dutch Finnish French Norwegian and Danish Swedish Norwegian and Danish (alternative) 8-bit Greek 8-bit Turkish SI 960 Hebrew Special Graphics Technical (TCS) Platform specific 1052 1053 1054 1055 1058 Acorn RISC OS Amstrad CPC Apple II ATASCII Atari ST BICS Casio calculators CDC Compucolor 8001 Compucolor II CP/M+ DEC RADIX 50 DEC MCS/NRCS DG International Galaksija GEM GSM 03.38 HP Roman HP FOCAL HP RPL SQUOZE LICS LMBCS MSX NEC APC NeXT PETSCII PostScript Standard PostScript Latin 1 SAM Coupé Sega SC-3000 Sharp calculators Sharp MZ Sinclair QL Teletext TI calculators TRS-80 Ventura International WISCII XCCS ZX80 ZX81 ZX Spectrum Other ABICOMP ASMO 449 Digital encoding of APL symbols ISO-IR-68 ARIB STD-B24 Fieldata HZ IEC-P27-1 INIS 7-bit 8-bit ISO-IR-169 ISO 2033 KOI KOI8-R KOI8-RU KOI8-U Mojikyō SEASCII Stanford/ITS Symbol TRON Unified Hangul Code Unicode, ISO/IEC 10646 UTF-1 UTF-7 UTF-8 UTF-16 UTF-32 UTF-EBCDIC GB 18030 DIN 91379 BOCU-1 CESU-8 SCSU TACE16 Comparison of Unicode encodings TeX typesetting Cork LY1 OML OMS OT1 Control character Morse prosigns C0 and C1 control codes ISO/IEC 6429 JIS X 0211 Unicode control, format and separator characters Whitespace characters Related topics CCSID Character encodings in HTML Charset detection Han unification Hardware code page MICR code Mojibake Variable-length encoding Character sets

---
Adapted from the Wikipedia article [Code page 936 (Microsoft Windows)](https://en.wikipedia.org/wiki/Code_page_936_(Microsoft_Windows)) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Code_page_936_(Microsoft_Windows)?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
