Method 9 for PC to EUC conversions
The method shown in Figure 61 has the following characteristics:
- It is used for conversion between an input PC CCSID and an output EUC CCSID.
- The valid encoding schemes for input are X'2100', X'3100', X'2200', X'2300', X'2305', X'3200', and X'3300' while X'4403' is valid for the output CCSID.
- The PC input data is always normalized to two bytes per code point.
- The conversion table created will handle either single-byte or double-byte code points from the input CS, CP pair to a possible single-byte, double-byte or triple-byte output CS, CP, as determined by the EUC encoding scheme.
- The content of the table will reflect:
- CS, CP pair priorities for the EUC CCSID
- Matched GCGID priority within a CS, CP pair
- Mismatch management criteria
- Space character management.
- Since many double-byte encodings do not use all available first-byte values as ward numbers, the conversion table will contain one record for each valid ward and one additional record for all invalid wards. Each record will contain 256 four-byte entries.
- Invalid single-byte code points will be mapped into the single-byte G0 set character SUB, at code point X'1A'. Invalid double-byte values will be mapped into the double-byte G1 set as a SUB.
- Each of the four-byte values will contain the appropriate single-shift character (SS2 or SS3), whenever the output is in G2 or G3.
Figure 61. Method 9: PC to EUC Conversion