Method 8 for mixed single/double-byte to double-byte
This method has the following characteristics:
- It is used for conversion between an input double-byte and an output mixed single/double-byte CCSID.
- The valid encoding schemes for the input data are X'1200', X'2200', X'3200', X'5200', X'6200', X'7200', X'8200' and X'9200', and for the output data are X'1301', X'2300', X'2305' and X'3300'.
- It uses a TYPE 2 conversion table, as described earlier for double-byte to double-byte conversions. See "Method 2 for Pure DBCS" for a description of the table and how it works.
- This method takes the two byte input code points and uses the TYPE 2 conversion table to produce normalized (two byte) output code points.
- The output data is then denormalized by removing the leading X'00' found on the normalized single-byte code points.
- Any necessary code extension controls are also added to the output data stream. The resultant string must be well formed as defined by the appropriate encoding structure. For more information see Appendix A.
- This method is primarily used for converting data from UCS-2 (encoding scheme X'7200').
- The resultant output string will not necessarily be the same length as the input string, (some of the input double-byte code points may map to single-byte code points in the output mixed CCSID).
- The content of the conversion table used governs the accuracy of the output data.

