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);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | Web.HTTPApp |
説明
コンテンツ タイプのエンコードに基づいてバイトの配列をデコードし、文字列に格納します。
EncodingGetString は、AContentType
からコンテンツ タイプのエンコード(UTF-8 または ANSI)を取り出し、AValue
が表すバイト配列(System.SysUtils.BytesOf を参照)をデコードして対応する文字列に格納します。
逆の働きをする関数は EncodingGetBytes です。