void SF_STDCALL EncodeString(char * pbuff, const wchar_t* pchar, SPInt length = -1);
EncodeString encodes a Unicode (UCS-2 only) string into a buffer. The size of buffer must be at least GetEncodeStringSize() + 1.
Parameters |
Description |
char * pbuff |
Pointer to UTF-8 buffer. |
const wchar_t* pchar |
Pointer to Unicode string. |
SPInt length = -1 |
Length of the buffer. |
SF_UTF8Util.h