Method 12 for EUC to Host conversions
The method shown in Figure 64 has the following characteristics:
- See "Method 10 for EUC to PC Conversions" for a description of the table format.
- It is used for conversion between an input EUC CCSID and an output HOST CCSID.
- The valid encoding scheme for input data is X'4403'. The valid output encoding schemes are X'1100', X'1200', X'1301'.
- Input is always expected in a normalized four-byte format.
- The conversion table created will handle either single-byte, double-byte or triple-byte code points from the input CS, CP pair to a possible single-byte or double-byte CS, CP code point output.
- CS, CP pair priorities for the EUC CCSID
- Matched GCGID priority within a CS, CP
- Mismatch management criteria
- Space character management.
- Since most EUC four-byte encodings only use a certain range for the three high-order bytes, the conversion table is organized into several levels of subtables. These subtables in turn point to a pool of records containing 256 double-byte entries. There is a subtable data record code point for each valid input code point.
- Invalid single-byte code points (X'00xx') will be mapped into the single-byte G0 set character SUB, at code point X'3F'. Invalid multi-byte values will be mapped into the double-byte host SUB, at X'FEFE'.
- Only a triple-byte CS, CP pair will use the high-order byte of the four-byte encoding space.
Figure 64. Method 12: EUC to Host Conversion