RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.UTF8ToString Function

Converts an UTF-8 encoded string to a string.

Pascal
function UTF8ToString(const S: RawByteString): string;
function UTF8ToString(const S: ShortString): string;
function UTF8ToString(const S: PAnsiChar): string;
function UTF8ToString(const S: array of AnsiChar): string; overload;
C++
AnsiString UTF8ToString(const RawByteString S);
AnsiString UTF8ToString(const ShortString S);
AnsiString UTF8ToString(const PAnsiChar S);
AnsiString UTF8ToString(const array of AnsiChar S);

Call UTF8ToString to convert an UTF-8 encoded string to a string. S is a string or an array of UTF-8 encoded characters. The result of the function is the corresponding decoded string value. 

 

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