System.UTF8Encode
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 */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.pas System.hpp |
System | System |
Description
Convertit une valeur WideString en une chaîne UTF8.
Appelez UTF8Encode pour convertir une chaîne Unicode en UTF-8. WS est la chaîne Unicode à convertir. Utf8Encode renvoie la chaîne UTF-8 correspondante.