Show: Delphi C++
Display Preferences

System.UTF8EncodeToShortString

From XE2 API Documentation
Jump to: navigation, search

Delphi

function UTF8EncodeToShortString(const WS: WideString): ShortString;
function UTF8EncodeToShortString(const US: UnicodeString): ShortString;
function UTF8EncodeToShortString(const A: RawByteString): ShortString;

C++

extern PACKAGE ShortString __fastcall UTF8EncodeToShortString(const 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.

See Also

Personal tools
Previous Versions
Translations