Web.HTTPApp.EncodingGetString
Delphi
function EncodingGetString(const AContentType: string; const AValue: TBytes): string;
C++
extern DELPHI_PACKAGE System::UnicodeString __fastcall EncodingGetString(const System::UnicodeString AContentType, const System::DynamicArray<System::Byte> AValue);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | Web.HTTPApp |
Description
Décode un tableau d'octets dans une chaîne, conformément à l'encodage du type de contenu.
EncodingGetString extrait de AContentType
l'encodage du type de contenu (UTF-8 ou ANSI) et décode le tableau d'octets représenté par AValue
(voir System.SysUtils.BytesOf) dans la chaîne correspondante.
La fonction inverse est EncodingGetBytes.