MIME / IANA | Windows-31J |
---|---|
Alias(es) | CP943C |
Language(s) | Japanese |
Standard | WHATWG Encoding Standard (as "Shift_JIS")[1] |
Classification | Extended ASCII,[a] variable-width encoding, CJK encoding |
Extends | Shift_JIS |
| |
Microsoft Windows code page 932 (abbreviated MS932,[2][3] Windows-932[3] or ambiguously CP932[4]), also called Windows-31J amongst other names (see § Terminology below), is the Microsoft Windows code page for the Japanese language, which is an extended variant of the Shift JIS Japanese character encoding. It contains standard 7-bit ASCII codes, and Japanese characters are indicated by the high bit of the first byte being set to 1. Some code points in this page require a second byte, so characters use either 8 or 16 bits for encoding.
IBM offer the same extended double-byte codes in their code page 943 (IBM-943 or CP943),[5] which is a combination of the single-byte Code page 897 and the double-byte Code page 941.[6]
Windows-31J is the most used non-UTF-8/Unicode Japanese encoding on the web. However, many people and software packages, including Microsoft libraries,[7] declare the Shift JIS encoding for Windows-31J data, although it includes some additional characters, and some of the existing characters are mapped to Unicode differently. This has led the WHATWG HTML standard to treat the encoding labels shift_jis
and windows-31j
interchangeably, and use the Windows variant for its "Shift_JIS" encoder and decoder.[1]
msdnlabels
was invoked but never defined (see the help page).