LOCALETYPE(*LOCALEUCS2) and LOCALETYPE(*LOCALEUTF) behavior

If LOCALETYPE(*LOCALEUCS2) is specified on the compilation command, wide character values are 2-byte UCS-2 values. All conversions between UCS-2 strings and single-byte or multibyte strings are conducted as if the iconv() function were used. CCSID 13488 is used for the UCS-2 string, and the CCSID of the LC_CTYPE category of the current locale is used for the single-byte or multibyte string.

If LOCALETYPE(*LOCALEUTF) is specified on the compilation command, wide character values are 4-byte UTF-32 values. All conversions between UTF-32 strings and single-byte or multibyte strings are conducted as if the iconv() function were used. UTF-32 is not supported by the iconv() function. Therefore, in conversions between a UTF-32 string and a single-byte or multibyte string, UTF-16 (CCSID 1200) is used as an intermediary data type. Transformations between UTF-32 and UTF-16 are accomplished using the QlgTransformUCSData() API. The iconv() API is used for the conversion between UTF-16 and the CCSID of the LC_CTYPE category of the current locale.



[ Top of Page | Previous Page | Next Page | Contents | Index ]