Notes on conversion from type N to type M (2)

Figure 9.17 Conversion from type N to type M (2)

Case (1):

The 2-byte codes in the input data are converted to the codes of the encoding of the output side. Also, as in the example, if the output area is larger than the actual output data size, the data is padded with halfwidth spaces.

Case (2):

In the conversion from type N to type M, all of the codes of the input data are regarded as 2-byte codes for conversion. In this example, the 1-byte codes "0x81", "0x82", "0x83", and "0x84" of the input data are regarded as the two 2-byte codes "0x8182" and "0x8384", and the codes are converted to external characters for output.

= Remarks =

In this example, the settings are specified so that if external characters are not registered, codes are converted to the default codes, and the default external kanji code of Shift JIS is set to "0x81A0".