Method 7 for Mixed Single/Double-byte to Double-byte
This method has the following characteristics:
- It is used for conversion between an input mixed single/double-byte and an output double-byte CCSID.
- The valid encoding schemes for the input data are X'1301', X'2300', X'2305' and X'3300', and for the output data are X'1200', X'2200', X'3200', X'5200', X'6200', X'7200', X'8200' and X'9200'.
- 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 requires that the input data is normalized such that each input code point is two bytes long. This is done by prefixing each single-byte code point with a X'00'.
- Any code extension controls are also removed from the input data stream.
- The conversion then proceeds as any normal double-byte to double-byte conversion.
- This method is primarily used for converting data to UCS-2 (encoding scheme X'7200').
- The resultant output string will not necessarily be the same length as the input string, (each single-byte code point from the mixed input string is converted to a double-byte).
- The content of the conversion table used governs the accuracy of the output data.