System.UTF8EncodeToShortString
Delphi
function UTF8EncodeToShortString(const WS: _WideStr): _ShortStr;
function UTF8EncodeToShortString(const US: UnicodeString): _ShortStr;
function UTF8EncodeToShortString(const A: _RawByteStr): _ShortStr;
C++
extern DELPHI_PACKAGE System::ShortString __fastcall UTF8EncodeToShortString(const System::WideString WS)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas System.hpp |
System | System |
Description
Converts a string to its UTF-8 encoded representation.
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.