Code page 942 explained

Code page 942 (abbreviated as CP942 or IBM-942) is one of IBM's extensions of Shift JIS. The coded character sets are JIS X 0201, JIS X 0208, IBM extensions for IBM 1880 UDC and IBM extensions. It is the combination of the single-byte Code page 1041 and the double-byte Code page 301.[1]

It is a superset of IBM-932, differing in its use of Code page 1041 in place of Code page 897 for its single byte codes. Code page 1041 is an extension of Code page 897 and adds five single-byte characters.[2] 0x80 is mapped to the cent sign (¢), 0xA0 is mapped to the pound sign (£), 0xFD is mapped to the not sign (¬), 0xFE is mapped to the backslash (\) and 0xFF is mapped to the tilde (~).[3] These are all unassigned in Code page 897 and therefore IBM-932.[4]

Code page 942 contains standard 7-bit ISO 646 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.

Code page 1041, and therefore Code page 942, uses 0x5C for the Yen sign (¥) and 0x7E for the overline (), matching the lower half of JIS X 0201 rather than US-ASCII. However, the version of Code page 942 used in International Components for Unicode (called "ibm-942_P12A-1999" or "x-IBM942C") uses US-ASCII mappings for single-byte characters between 0x20 and 0x7E. This results in duplicate mapping for the tilde (0x7E and 0xFF) and the backslash (0x5C and 0xFE).[5]

See also

External links

Notes and References

  1. Web site: Coded character set identifiers - CCSID 942 . IBM . IBM Globalization . https://web.archive.org/web/20160315102427/http://www-01.ibm.com/software/globalization/ccsid/ccsid942.html . 2016-03-15 . dead.
  2. Web site: Code page identifiers - CP 01041 . IBM Globalization . https://web.archive.org/web/20160601213212/https://www-01.ibm.com/software/globalization/cp/cp01041.html . 2016-06-01 . dead.
  3. Web site: [ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/CP01041.txt CP01041.txt ]. IBM . 2024-05-28 . live . https://archive.today/20240528092942/https://www.webcitation.org/75NcHzLRv?url=ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/CP01041.txt.
  4. Web site: [ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/CP00897.txt CP00897.txt ]. IBM . 2024-05-28 . live . https://archive.today/20240528092903/https://www.webcitation.org/75NZsweMG?url=ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/CP00897.txt . 2017-11-08 .
  5. Web site: Converter Explorer: ibm-942_P12A-1999 . International Components for Unicode . ICU Demonstration.