RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.UTF8EncodeToShortString Function

Converts a string to its UTF-8 encoded representation.

Pascal
function UTF8EncodeToShortString(const WS: WideString): ShortString; overload;
function UTF8EncodeToShortString(const US: UnicodeString): ShortString; overload;
function UTF8EncodeToShortString(const A: RawByteString): ShortString; overload;
C++
ShortString UTF8EncodeToShortString(const BSTR WS);
ShortString UTF8EncodeToShortString(const UnicodeString US);
ShortString UTF8EncodeToShortString(const RawByteString A);

Call UTF8EncodeToShortString to convert a string to its UTF-8 representation. S is the string to be converted. The result of the function is the corresponding UTF-8 encoded ShortString value. 

 

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