Web.HTTPApp.EncodingFromContentType

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

Delphi

function EncodingFromContentType(const AContentType: string): TEncoding;

C++

extern DELPHI_PACKAGE System::Sysutils::TEncoding* __fastcall EncodingFromContentType(const System::UnicodeString AContentType);

プロパティ

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

説明

コンテンツ タイプのエンコードを取得します。


EncodingFromContentType は、指定された値 AContentType の中に文字列 UTF-8 が含まれているかを検索します。UTF-8 が見つかれば、エンコードは UTF-8 であると見なされます。見つからなければ ANSI であると見なされます。