CCSID explained

A CCSID (coded character set identifier) is a 16-bit number that represents a particular encoding of a specific code page. For example, Unicode is a code page that has several character encoding schemes (referred to as "transformation forms")—including UTF-8, UTF-16 and UTF-32—but which may or may not actually be accompanied by a CCSID number to indicate that this encoding is being used.

Difference between a code page and a CCSID

The terms code page and CCSID are often used interchangeably, even though they are not synonymous. A code page may be only part of what makes up a CCSID. The following definitions from IBM help to illustrate this point:

Examples

The following examples show how some CCSIDs are made up of other CCSIDs.

CCSID 932[4]
Character setCode pageCCSIDEncoding scheme
0112200897897
0037000301301
CCSID 942[5]
Character setCode pageCCSIDEncoding scheme
01172010411041SBCS
0037000301301DBCS
CCSID 5028[6]
Character setCode pageCCSIDEncoding scheme
01170008974993SBCS
0037000301301DBCS

All three of these variant Shift-JIS CCSIDs are multi-byte character sets (MBCS): the single-byte character set (SBCS) portion of each CCSID is different. The double-byte character set (DBCS) portion is the same across each CCSID. CCSID 5028 uses an updated code page 897 called CCSID 4993. CCSID 932 uses the original code page 897, which is CCSID 897. CCSID 942 uses a different SBCS from the other two CCSIDs, which is 1041.

Also notice how CCSID 5028 and 4993 are different by 4096 (1000 in hexadecimal) from the predecessor CCSID with the same code page identifier. This is a common way that CDRA denotes an upgraded CCSID.

There are a few reasons for this complexity:

External links

Notes and References

  1. Web site: IBM Terminology—Terms C . . 2013-01-25.
  2. Web site: Character Data Representation Architecture . Appendix A. Encoding Schemes . . 2019-06-29.
  3. Web site: Character Data Representation Architecture . Chapter 3. CDRA Identifiers, section "Long-Form Identification" . . 2019-06-29.
  4. Web site: Japanese PC Data Mixed including 1880 UDC . IBM . Globalization . dead . February 20, 2012 . https://web.archive.org/web/20120220153419/http://www-01.ibm.com/software/globalization/ccsid/ccsid932.html . November 29, 2011 .
  5. Web site: Japanese PC Data Mixed including 1880 UDC, Extended SBCS . IBM . Globalization . dead . December 1, 2014 . https://web.archive.org/web/20141201234629/http://www-01.ibm.com/software/globalization/ccsid/ccsid942.html . November 29, 2011 .
  6. Web site: Japanese PC Data Mixed including 1880 UDC (Katakana - PC common set for SBCS) . IBM . Globalization . dead . November 29, 2014 . https://web.archive.org/web/20141129225910/http://www-01.ibm.com/software/globalization/ccsid/ccsid5028.html . November 29, 2011 .
  7. Web site: Us-en_software_HP. 9 November 2020.