page_title: KS X 1001
section_title: Johab encoding
hierarchical_section_title: KS X 1001 / Johab encoding
caption_attribution_description: 한국어: 한글 상용 조합형 인코딩의 시각적인 구조. 세로 축은 첫째 바이트, 가로 축은 둘째 바이트에 해당하며 한 픽셀이 가능한 한 가지 조합에 해당함. 범례 노랑: KS X 1003 초록: 현대 한글 (11172자), 한글 자모 (67자) 및 전각 공백 (U+3000) 어두운 초록: 미완성 현대 한글 (520자) 빨강: 특수문자 파랑: 한자
context_page_description: KS X 1001, "Code for Information Interchange", formerly called KS C 5601, is a South Korean coded character set standard to represent hangul and hanja characters on a computer.
  KS X 1001 is encoded by the most common legacy character encodings for Korean, including EUC-KR and Microsoft's Unified Hangul Code. It contains Korean Hangul syllables, CJK ideographs, Greek, Cyrillic, Japanese and some other characters.
  KS X 1001 is arranged as a 94×94 table, following the structure of 2-byte code words in ISO 2022 and EUC. Therefore, its code points are pairs of integers 1–94. However, some encodings, in addition to providing codes for every code point, provide additional codes for characters otherwise representable only as code point sequences.
context_section_description: KS X 1001, since 1992, also defines an alternative encoding known as Johab. This represents a hangul syllable as the sequence of three five-bit values, split across two 8-bit bytes, most significant bit first. The most significant bit of the lead byte is always set (allowing combination with single-byte ASCII or KS X 1003). This encoding is also used for the modern jamo from row 4 of KS X 1001, by using the filler values for the other components. The Johab encoding for hangul is shown in the table below.
  Johab encodes the remainder of KS X 1001 using lead bytes which do not correspond to an initial jamo (0xE0–0xF9 for hanja and 0xD9–0xDE for non-hanja, excluding hangul syllables and modern jamo), with trail bytes in the ranges 0x31–0x7E and 0x91–0xFE. These codes are algorithmically mapped from the characters' KS X 1001 code points, with two KS X 1001 rows per lead byte (compare and contrast Shift JIS).
caption: Diagram of Johab encoding layout
exif: {}