Convert a unicode (UTF16) string to a UTF8 string
Source position: ustringh.inc line 138
function UnicodeToUtf8( |
Dest: PAnsiChar; |
Source: PUnicodeChar; |
MaxBytes: SizeInt |
):SizeInt; |
Dest: PAnsiChar; |
MaxDestBytes: SizeUInt; |
Source: PUnicodeChar; |
SourceChars: SizeUInt |
):SizeUInt; |
Utf8ToUnicode converts the buffer in Source with a length of SourceBytes or for a maximum length of MaxBytes (or MaxDestbytes) bytes to the buffer pointed to by Dest. If Dest is Nil it will return the number of bytes needed to convert the UTF16 to UTF8. if MaxDestBytes allows for a null terminator, then it is also added to the output.
The function returns the number of copied bytes, or, if Dest is Nil, then it will return the number of bytes needed to perform the conversion.
On error, -1 is returned.
|
Convert a buffer with UTF-8 characters to widestring characters. |
|
|
Convert a widestring or unicodestring to an UTF-8 encoded ansistring. |
|
|
Convert an UTF-8 encoded ansistring to a unicodestring. |
|
|
Convert a UTF-8 encoded Unicode string to an ansistring. |
|
|
Set the widestring manager. |