Web.HTTPApp.EncodingFromContentType
Delphi
function EncodingFromContentType(const AContentType: string): TEncoding;
C++
extern DELPHI_PACKAGE System::Sysutils::TEncoding* __fastcall EncodingFromContentType(const System::UnicodeString AContentType);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | Web.HTTPApp |
Description
Gets the content type encoding.
EncodingFromContentType searches the string UTF-8 in the given value AContentType. If UTF-8 is found then the encoding is considered UTF-8, otherwise ANSI.