Skip to content

UTF8Decode

Convert an UTF-8 encoded ansistring to a unicodestring

Declaration

Source position: ustringh.inc line 141

  function UTF8Decode(const s: RawByteString) : UnicodeString;

Description

UTF8Decode converts the UTF-8 encoded ansistring S to a unicodestring and returns the resulting string. It calls the low-level Utf8ToUnicode function to do the actual work.

See also

Name Description
SetWideStringManager Set the widestring manager
UTF8Encode Convert a widestring or unicodestring to an UTF-8 encoded ansistring
Utf8ToAnsi Convert a UTF-8 encoded Unicode string to an ansistring
Utf8ToUnicode Convert a buffer with UTF-8 characters to widestring characters