Afficher : Delphi
C++
Préférences d'affichage
System.UTF8Encode
De XE2 API Documentation
Delphi
function Utf8Encode(const WS: WideString): RawByteString; function Utf8Encode(const US: UnicodeString): RawByteString; function UTF8Encode(const A: RawByteString): RawByteString;
C++
extern 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.