Converting a JADE Character Value to a Unicode Value

The josCharacterToUnicode call, shown in the following example, converts a JADE Character type to a Unicode value using the UTF‑16 wide-character encoding routine.

int josCharacterToUnicode(Character * pSource,
                          wchar_t     target[],
                          Size        sizeOfTargetInWChar);

The parameters for this call are listed in the following table.

Parameter Description
pSource String of JADE characters that is to be converted
target Location of the buffer to receive the converted string
sizeOfTargetInWChar Size of the target buffer, defined in wchar_t characters