System.UTF8Encode

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

function Utf8Encode(const WS: _WideStr): _RawByteStr;
function Utf8Encode(const US: UnicodeString): _RawByteStr;
function UTF8Encode(const A: _RawByteStr): _RawByteStr;
procedure UTF8Encode(const US: UnicodeString; var B: array of Byte);

C++

extern DELPHI_PACKAGE RawByteString __fastcall UTF8Encode(const WideString WS)/* overload */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
System.pas
System.hpp
System System

Beschreibung

Konvertiert einen WideString-Wert in einen UTF8-String.

Mit UTF8Encode konvertieren Sie einen Unicode-String nach UTF-8. WS ist der zu konvertierende Unicode-String. UTF8Encode gibt den entsprechenden UTF-8-String zurück.

Siehe auch