Notes on conversion from type M to type X (both the input and output are the same ASCII kanji code type)

Figure 9.12 Conversion from type M to type X (both the input and output are the same ASCII kanji code type)
- Case (1):
-
The halfwidth characters in the input data are converted to the codes of the encoding on the output side. In this example, because both the input and output are the same ASCII kanji code type, the values of the halfwidth character remain the same. 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 a conversion from type M to type X, if the input data contains a fullwidth character, a conversion error is generated. In this example, an error occurs when the character あ is detected.