Japanese language in EBCDIC (Redirected from Code page 1031)

Several mutually incompatible versions of the Extended Binary Coded Decimal Interchange Code (EBCDIC) have been used to represent the Japanese language on computers, including variants defined by Hitachi, Fujitsu, IBM and others. Some are variable-width encodings, employing locking shift codes to switch between single-byte and double-byte modes. Unlike other EBCDIC locales, the lowercase basic Latin letters are often not preserved in their usual locations.

The characters which are found in the double-byte Japanese code used with EBCDIC by IBM, but not found in the first edition of JIS X 0208, also influenced the vendor extensions found in some non-EBCDIC encodings such as IBM code page 932 ("DBCS-PC") and Windows code page 932.

Single-byte codes

Similarly to JIS X 0201 (itself incorporated into Shift JIS), Japanese EBCDIC encodings often include a set of single-byte katakana. Several different variants of the single-byte EBCDIC code are used in the Japanese locale, by different vendors; a given vendor may also define two different single-byte codes, one favoured for half-width katakana and one favoured for Latin script. Variants of EBCDIC favoured by a given vendor for use for katakana are sometimes referred to as EBCDIK, standing for Extended Binary-Coded Decimal Interchange Kana code.

Code pages incorporating half-width kana are an exception to IBM's EBCDIC invariant character set, which specifies a set of characters which are usually encoded the same across all EBCDIC code pages. Most notably, they sometimes include katakana characters at code points which are used for lowercase letters of the Basic Latin alphabet in the invariant set. Encoding of lowercase letters when katakana characters are included at those locations, and encoding of katakana characters when lowercase letters are retained in their usual locations, can vary between vendors, as shown below.

Microsoft Windows implements two Japanese single-byte EBCDIC variants, with code page numbers 20000 higher than IBM's code page numbers for its variants, as code pages 20290 (documented as IBM290, "IBM EBCDIC Japanese Katakana Extended") and 21027 ("Extended/Ext Alpha Lowercase"). Code page 21027 as implemented in Windows is an incomplete implementation, lacking two-way mappings for several letters and kana, and is currently deprecated.

IBM's code pages were later updated to include the Euro sign at 0xE1, retaining their original CPGID numbers, but being assigned new CCSID numbers. Hence, the CCSID 290 refers to the original version of code page 290, while the version of code page 290 with the Euro sign is also known as CCSID 8482. Similarly, CCSID 1027 refers to the original version of code page 1027, while the version of CPGID 1027 with the Euro sign is given the CCSID 5123.

Alongside versions of IBM's double-byte Japanese DBCS-Host code page (CPGID 300, CCSID 300 or 16684) as a double-byte component, IBM code page 290 is used as the single-byte component of the multi-byte code page IBM-930 and (as the Euro-updated CCSID 8482) the updated version IBM-1390. IBM code page 1027 is used as the single-byte component of the multi-byte code page IBM-939 and (as the Euro-updated CCSID 5123) the updated version IBM-1399.

In the following table, conformance to the invariant set is marked with green; collision with the invariant set is marked with red.

Single-byte codes in Japanese EBCDIC variants (excluding control codes)
Hexadecimal Lowercase in invariant locations, kana absent or displaced Lowercase absent or displaced by kana
Fujitsu EBCDIC Hitachi EBCDIC HP EBCDIK IBM 298 IBM 1027
IBM 1031 Fujitsu EBCDIK Hitachi EBCDIK
IBM 1136
NEC EBCDIC IBM 290
IBM 887 IBM 1030
0x40 SP SP SP SP SP SP SP SP SP SP SP SP
0x41
0x42
0x43
0x44
0x45
0x46
0x47
0x48
0x49
0x4A £ [ ¢ ¢ ¢ £ [ [ £ £ £
0x4B . . . . . . . . . . . .
0x4C < < ) < < < < < < < < <
0x4D ( ( [ ( ( ( ( ( ( ( ( (
0x4E + + < + + + + + + + + +
0x4F | ! | | | | ! ! | | |
0x50 & & + & & & & & & & & &
0x51
0x52
0x53
0x54
0x55
0x56
0x57 a
0x58
0x59 a b
0x5A ! ] ! ! ! ! ] ] ! ! !
0x5B \ ¥ $ $ $ $ \ ¥ \ ¥ ¥ ¥
0x5C * * * * * * * * * * * *
0x5D ) ) ] ) ) ) ) ) ) ) ) )
0x5E ; ; ; ; ; ; ; ; ; ; ; ;
0x5F ¬ ^ ¬ ¬ ¬ ¬ ^ ^ ¬ ¬ ¬
0x60 - - - - - - - - - - - -
0x61 / / / / / / / / / / / /
0x62 b c a a
0x63 c d b b
0x64 d e c c
0x65 e f d d
0x66 f g e e
0x67 g h f f
0x68 h i g g
0x69 i j h h
0x6A ¦ | | ¦ | |
0x6B , , , , , , , , , , , ,
0x6C % % ( % % % % % % % % %
0x6D _ _ _ _ _ _ _ _ _ _ _ _
0x6E > > ¥ > > > > > > > > >
0x6F ? ? ? ? ? ? ? ? ? ? ?
0x70 j k [ [
0x71 k l i i
0x72 l m j j
0x73 m n k k
0x74 n o l l
0x75 ソ ソ ソ ソ ソ o p m m
0x76 p q n n
0x77 q r o o
0x78 r s p p
0x79 ` ` ` ` ` ` ` ` ` ` `
0x7A : : : : : : : : : : :
0x7B # # = # # # # # # # # #
0x7C @ @ ' @ @ @ @ @ @ @ @ @
0x7D ' ' : ' ' ' ' ' ' ' ' '
0x7E = = > = = = = = = = = =
0x7F " " " " " " " " " " " "
0x80 s t ] ]
0x81 a a a a a a
0x82 b b b b b b
0x83 c c c c c c
0x84 d d d d d d
0x85 e e e e e e
0x86 f f f f f f
0x87 g g g g g g
0x88 h h h h h h
0x89 i i i i i i
0x8A
0x8B t u q q
0x8C
0x8D
0x8E
0x8F
0x90 ソ ソ ソ ソ ソ ソ
0x91 j j j j j j
0x92 k k k k k k
0x93 l l l l l l
0x94 m m m m m m
0x95 n n n n n n
0x96 o o o o o o
0x97 p p p p p p
0x98 q q q q q q
0x99 r r r r r r
0x9A
0x9B u v r r
0x9C v w
0x9D
0x9E
0x9F
0xA0 ¯ ¯ w x ~ ~
0xA1 ~ ~ ¯ ~ ~ ~ ~ ~ ~ ¯ ¯ ¯
0xA2 s s s s s s
0xA3 t t t t t t
0xA4 u u u u u u
0xA5 v v v v v v
0xA6 w w w w w w
0xA7 x x x x x x
0xA8 y y y y y y
0xA9 z z z z z z
0xAA
0xAB x y s s
0xAC
0xAD [ [
0xAE
0xAF
0xB0 ^ ^ y z ^ ^
0xB1 £ £ z ¢ ¢
0xB2 ¥ ¥ \ \
0xB3 t t
0xB4 u u
0xB5 v v
0xB6 w w
0xB7 x x
0xB8 y y
0xB9 z z
0xBA
0xBB
0xBC
0xBD ] ]
0xBE
0xBF
0xC0 { { ? { { { { { { { {
0xC1 A A A A A A A A A A A A
0xC2 B B B B B B B B B B B B
0xC3 C C C C C C C C C C C C
0xC4 D D D D D D D D D D D D
0xC5 E E E E E E E E E E E E
0xC6 F F F F F F F F F F F F
0xC7 G G G G G G G G G G G G
0xC8 H H H H H H H H H H H H
0xC9 I I I I I I I I I I I I
0xCA
0xCB
0xCC
0xCD
0xCE
0xCF
0xD0 } } ! } } } } } } } }
0xD1 J J J J J J J J J J J J
0xD2 K K K K K K K K K K K K
0xD3 L L L L L L L L L L L L
0xD4 M M M M M M M M M M M M
0xD5 N N N N N N N N N N N N
0xD6 O O O O O O O O O O O O
0xD7 P P P P P P P P P P P P
0xD8 Q Q Q Q Q Q Q Q Q Q Q Q
0xD9 R R R R R R R R R R R R
0xDA
0xDB °
0xDC ±
0xDD
0xDE
0xDF
0xE0 $ $ ¥ \ \ $ $ $ $ $ $
0xE1
0xE2 S S S S S S S S S S S S
0xE3 T T T T T T T T T T T T
0xE4 U U U U U U U U U U U U
0xE5 V V V V V V V V V V V V
0xE6 W W W W W W W W W W W W
0xE7 X X X X X X X X X X X X
0xE8 Y Y Y Y Y Y Y Y Y Y Y Y
0xE9 Z Z Z Z Z Z Z Z Z Z Z Z
0xEA
0xEB
0xEC
0xED
0xEE
0xEF Ω
0xF0 0 0 0 0 0 0 0 0 0 0 0 0
0xF1 1 1 1 1 1 1 1 1 1 1 1 1
0xF2 2 2 2 2 2 2 2 2 2 2 2 2
0xF3 3 3 3 3 3 3 3 3 3 3 3 3
0xF4 4 4 4 4 4 4 4 4 4 4 4 4
0xF5 5 5 5 5 5 5 5 5 5 5 5 5
0xF6 6 6 6 6 6 6 6 6 6 6 6 6
0xF7 7 7 7 7 7 7 7 7 7 7 7 7
0xF8 8 8 8 8 8 8 8 8 8 8 8 8
0xF9 9 9 9 9 9 9 9 9 9 9 9 9
0xFA
0xFB
0xFC
0xFD µ
0xFE

Double-byte codes

There are three double-byte character codes used for Japanese with EBCDIC: IBM code page 300 (also called IBM Kanji or IBM Japanese DBCS-Host) from IBM, KEIS from Hitachi, and JEF from Fujitsu. These are DBCS-Host encodings, using different shift codes to switch between single-byte EBCDIC and double-byte modes. Codes 0x41 through 0xFE (those used for graphic characters in EBCDIC) are used in pairs to represent characters from a 190×190 grid; code 0x40 (space in EBCDIC) is used doubled as an ideographic space, but not as part of any other double-byte code.

In the IBM version of the DBCS-Host code, the code 0x0F switches to single-byte mode and the code 0x0E switches to double-byte mode, in common with IBM double-byte EBCDIC codes for other CJK languages, such as the EBCDIC version of Johab for Korean. In contrast to KEIS and JEF, the layout of IBM code page 300 is unrelated to JIS X 0208, and conversion between the two must be done via a table; however, its character repertoire has been kept up-to-date with successive revisions of JIS X 0208 so as to remain a superset of JIS X 0208's repertoire. Lead bytes 0x41 through 0x44 are used for non-Kanji characters, lead bytes 0x45 through 0x68 are used for Kanji characters, and lead bytes 0x69 through 0x89 are used for UDC (user-defined characters).

The existence of IBM's Japanese DBCS-Host code had impact beyond EBCDIC systems, since IBM also defined variants of Shift JIS ("DBCS-PC", defined in the pure double-byte Code page 301 and used in the variable width Code page 932 and Code page 942) and of EUC-JP which encode the entire repertoire of IBM code page 300, including 28 non-Kanji and 360 Kanji additional to those originally included in JIS X 0208 (although the non-Kanji because sign ∵ and not sign ¬ were later added to JIS X 0208 in 1983). These are referred to as "IBM-selected" characters and are included as extensions in, for example, Windows code page 932.

Some newer revisions of the IBM-300 code page add additional Kanji with lead bytes 0xB8 through 0xD5 and additional non-Kanji with lead bytes 0xD6 through 0xE9. This revision updated the set for JIS X 0213, including the Euro sign and, while retaining the CPGID 300, was assigned the new CCSID 16684. The code pages IBM-930 (with code page 290 as the single-byte set), IBM-931 (with code page 37 as the single-byte set), and IBM-939 (with code page 1027 as the single-byte set) exclude these additions, while IBM-1390 (with the Euro sign version of code page 290 / CCSID 8482) and IBM-1399 (with the Euro sign version of code page 1027 / CCSID 5123) include them.

In Hitachi KEIS (Kanji-processing Extended Information System), the sequence 0x0A 0x41 switches to single-byte mode and the sequence 0x0A 0x42 switches to double-byte mode. JIS X 0208 characters are encoded using the same byte sequences used to encode them in EUC-JP, i.e. with both bytes being between 0xA1 and 0xFE inclusive. This results in duplicate encodings for the ideographic space—0x4040 per the DBCS-Host code structure, and 0xA1A1 as in EUC-JP. However, the lead byte range is extended back to 0x59, out of which the lead bytes 0x81–A0 are designated for user-defined characters, and the remainder are used for corporate-defined characters, including both kanji and non-kanji.

In Fujitsu JEF (Japanese-processing Extended Feature), 0x29 switches to single-byte mode and 0x28 switches to double-byte mode. Similarly to KEIS, JIS X 0208 codes are represented the same as in EUC-JP. Differing from KEIS, the JIS X 0208 edition used in this JEF zone is the original JIS C 6226:1978. The lead byte range is extended back to 0x41, with 0x80–A0 designated for user definition; lead bytes 0x41–7F are assigned row numbers 101 through 163 for kuten purposes, although row 162 (lead byte 0x7E) is unused. Rows 101 through 148 are used for extended kanji, while rows 149 through 163 are used for extended non-kanji.

Footnotes

  1. ^ These hexadecimal forms of these shift sequences match the decimal forms (10 65 and 10 66) listed by Lunde. Lunde lists the hexadecimal forms for both shifts as 0xA0 0x42, seemingly in error.

This page was last updated at 2024-02-18 07:07 UTC. Update now. View original page.

All our content comes from Wikipedia and under the Creative Commons Attribution-ShareAlike License.


Top

If mathematical, chemical, physical and other formulas are not displayed correctly on this page, please useFirefox or Safari