ctu16TOu8
Converts a UTF16 Unicode string to a UTF8 encoded string.
Short Name
ctu16TOu8()
Type
Utility
Declaration
NINT ctu16TOu8(pWCHAR u16str, pTEXT u8str, VRLEN u8byt)
Description
ctu16TOu8() converts a UTF16 Unicode string to a UTF8 encoded string. The input strings are assumed to be terminated by a NULL character. All output buffer sizes are specified in bytes.
Return
Value |
Symbolic Constant |
Explanation |
---|---|---|
0 |
NO_ERROR |
Successful convert. |
153 |
VBSZ_ERR |
The output buffer is too small. |
446 |
BMOD_ERR |
There is a problem with the input string. |
See FairCom DB Error Codes for a complete listing of valid FairCom DB error values.
See also
ctu8TOu16