Web.HTTPApp.EncodingGetBytes
Delphi
function EncodingGetBytes(const AContentType: string; const AValue: string): TBytes;
C++
extern DELPHI_PACKAGE System::Sysutils::TBytes __fastcall EncodingGetBytes(const System::UnicodeString AContentType, const System::UnicodeString AValue);
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | Web.HTTPApp |
Beschreibung
Codiert einen String gemäß der Inhaltstypcodierung in ein Byte-Array.
EncodingGetBytes extrahiert die Inhaltstypcodierung (kann UTF-8 oder ANSI sein) aus AContentType
und codiert den String AValue
in das entsprechende Byte-Array.
Die umgekehrte Funktion lautet EncodingGetString.