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::Sysutils::TBytes AValue);
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
|---|---|---|---|---|
| function | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | Web.HTTPApp |
Beschreibung
Decodiert ein Byte-Array gemäß der Inhaltstypcodierung in einen String.
EncodingGetString extrahiert die Inhaltstypcodierung (kann UTF-8 oder ANSI sein) aus AContentType und decodiert das Byte-Array AValue (siehe System.SysUtils.BytesOf) in den entsprechenden String.
Die umgekehrte Funktion lautet EncodingGetBytes.