Use this function to convert multibyte string data to Universal Character Set (UCS).
int cciMbsToUcs(
int* returnCode,
const char* mbString,
CciChar* ucsString,
int ucsStringLength,
int codePage);
For an ASCII system, a value of 1208 (meaning code page ibm-1208, which is UTF-8 Unicode) is a good choice if you are using cciMbsToUcs to convert string constants for processing by IBM® Integration Bus. 1208 is appropriate for Linux, UNIX, and Windows systems.
On Linux, UNIX systems, nl_langinfo(CODEPAGE) gives you the code page that has been selected by setlocale.
On z/OS®, the default code page for WebSphere® MQ, which is 500, must not be used. Instead, use a code page value of 1047.
The returnCode parameter is set to the converted length in half-words (UCS-2 characters).