RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.UTF8ToUnicodeString Function

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

Pascal
function UTF8ToUnicodeString(const S: RawByteString): UnicodeString; overload;
function UTF8ToUnicodeString(const S: ShortString): UnicodeString; overload;
function UTF8ToUnicodeString(const S: PAnsiChar): UnicodeString; overload;
C++
UnicodeString UTF8ToUnicodeString(const RawByteString S);
UnicodeString UTF8ToUnicodeString(const ShortString S);
UnicodeString UTF8ToUnicodeString(const PAnsiChar S);

Call UTF8ToUnicodeString to convert an UTF-8 encoded string to Unicode. S is a string that contains UTF-8 encoded characters. The result of the function is the corresponding Unicode string value. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!