System.UTF8ToUnicodeString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function UTF8ToUnicodeString(const S: _RawByteStr): UnicodeString;
function UTF8ToUnicodeString(const S: _PAnsiChr): UnicodeString; overload;
function UTF8ToUnicodeString(const S: _ShortStr): UnicodeString; overload;

C++

extern DELPHI_PACKAGE UnicodeString __fastcall UTF8ToUnicodeString(const RawByteString S)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

Converts a UTF-8 encoded string to a Unicode string.

Call UTF8ToUnicodeString to convert a UTF-8 encoded string to Unicode. S is a string of UTF-8 encoded characters that can have the following formats:

The result of the function is the corresponding Unicode string value.

See Also