Conversion of a 1-byte code between type X data

 

In a conversion from type X to type X, the operation differs depending on the kanji code type and EBCDIC code set. The table below shows the operations for different combinations of kanji code types and EBCDIC code sets.

Note

When specifying type X data in UTF-16, be sure to use an even number of bytes.

Table 9.2 Conversions between type X data

 

Output kanji code type

ASCII family

EBCDIC family

Unicode family

SHIFT-JIS

EUC

JIS

JEF

IBM kanji

KEIS

NEC kanji

UTF-8

UTF-16

Input kanji code type

ASCII family

SHIFT-JIS

E

B

A

A

A

A

A

B

A

EUC

B

E

A

A

A

A

A

B

A

JIS

A

A

E

A

A

A

A

A

A

EBCDIC family

JEF

A

A

A

E

C

C

C

A

A

IBM kanji

A

A

A

C

E

C

C

A

A

KEIS

A

A

A

C

C

E

C

A

A

NEC kanji

A

A

A

C

C

C

E

A

A

Unicode family

UTF-8

B

B

A

A

A

A

A

E

A

UTF-16

A

A

A

A

A

A

A

A

D

A

:

Converted

B

:

Only halfwidth katakana is converted

C

:

Converted only when different EBCDIC coding sets are used for input and output

D

:

Converted only when different Unicode byte orders are used for input and output

E

:

Not converted