Conversion of JIS codes

This section explains code conversions that use JIS codes for kanji code type.

(1) Handling of type X data

DataMagic can handle EBCDIC code sets in addition to ASCII as a 1-byte encoding set. Type X data is converted according to the settings of 1-byte encoding set for the input and output files.

Set the 1-byte encoding set in EBCDIC Code Set in the Input Settings screen and Output Settings screen.

Note

Even when converting JIS codes to a different encoding set (from ASCII to an EBCDIC encoding, or from an EBCDIC encoding to ASCII), you cannot use the EBCDIC user tables.

(2) Handling of type N data

In type N data, 2-byte character data without control characters are handled as new JIS kanji characters.

(3) Handling of type M and type D data

a) Handling of 1-byte encoding set

The only 1-byte encoding set handled in type M and type D data is ASCII. Regardless of the settings of 1-byte encoding set in the Input Settings screen and the Output Settings screen, all data is handled as ASCII characters.

b) Handling of control characters

In DataMagic, ASCII characters, JIS Roman, JIS kana, old JIS kanji characters, new JIS kanji characters and JIS supplementary kanji characters are handled as control characters.

In a conversion between JIS encoding and other kanji encoding, control characters in the type M and type D input data are handled as the characters in the following table:

Table 9.8 Handling of control characters when JIS codes are input

Control character code included in type M and type D data

Character type handled as the input data of the conversion

ASCII

1-byte ASCII code

JIS Roman

1-byte ASCII code

JIS kana

halfwidth kana code

Old JIS

2-byte kanji character code

New JIS

2-byte kanji character code

JIS supplementary kanji characters

2-byte code. Handled as external characters.

-- (no control characters)

1-byte ASCII code

 

In a conversion between JIS encoding and other kanji encoding, the control characters in the table below are output according to the character types in the type M and type D output data.

Table 9.9 Handling of control characters when JIS codes are output

Character type included in type M and type D data

Escape sequence output by the code conversion

1-byte ASCII code

ASCII

halfwidth kana code

JIS kana

2-byte code

New JIS kanji

In a conversion between JIS encoding, control characters are not converted. Therefore, the control characters of JIS Roman, old JIS kanji and JIS supplementary kanji characters included in the type M input data are output as they are, without being converted.

(4) Handling of type Z data

The only 1-byte encoding set handled in type Z data is ASCII.

Regardless of the settings of 1-byte encoding set in the Input Settings screen and the Output Settings screen, all data is handled as ASCII characters.