NWLUnicodeToUTF8Size
Computes the number of bytes that must be allocated to store a Unicode string in UTF-8 format.
N_GLOBAL_(nuint) NWLUnicodeToUTF8Size (
punicode uniStr);
uses netwin32
Function NWLUnicodeToUTF8Size
(uniStr : punicode
): nint;
Returns the size (in bytes) required to store a Unicode string (including the string termination character) in UTF-8 format.
For sample code, see utf8.c.