Web.HTTPApp.EncodingGetBytes

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function EncodingGetBytes(const AContentType: string; const AValue: string): TBytes;

C++

extern DELPHI_PACKAGE System::DynamicArray<System::Byte> __fastcall EncodingGetBytes(const System::UnicodeString AContentType, const System::UnicodeString AValue);

プロパティ

種類 可視性 ソース ユニット
function public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp Web.HTTPApp

説明

コンテンツ タイプのエンコードに基づいて文字列をエンコードし、バイトの配列に格納します。


EncodingGetBytes は、AContentType からコンテンツ タイプのエンコード(UTF-8 または ANSI)を取り出し、文字列 AValue をエンコードして対応するバイト配列に格納します。

逆の働きをする関数は EncodingGetString です。

関連項目