CP874toUTF8 utility

The CP874toUTF8 utility converts data in the CP874 character set into a UTF8 collation that is supported by Sybase IQ for the Thai language. You can also use this utility to load data in the CP874 character set without converting it to UTF8.

Syntax

CP874toUTF8 [CP874InputFile]

Usage

You can run this utility only from the command prompt.

CP874toUTF8 reads the named file in the CP874 character set (or standard input if no files are named) and prints the UTF8 conversion to standard output.

NoteFiles with embedded NULL characters (‘\0’) are not converted correctly. Remove such characters before running this utility.

Use caution with large data files; the UTF8 output can be up to three times larger than the input data. Input and output file size must both be within operating system limits.

CP874toUTF8 returns a 0 exit status upon successful completion. A nonzero exit status indicates an error occurred. The CP874toUTF8 utility writes all error messages to stderr.

CP874toUTF8 calls the International Components for Unicode (ICU) library to perform the data conversion. If ICU cannot convert the data, CP874toUTF8 reports a conversion error. If the conversion fails, divide the file into smaller sections for conversion, to isolate the point of failure. If you cannot resolve the problem, contact Sybase Technical Support.