Web.HTTPApp.EncodingFromContentType

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function EncodingFromContentType(const AContentType: string): TEncoding;

C++

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

Propriétés

Type Visibilité  Source Unité  Parent
function public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp Web.HTTPApp

Description

Obtient l'encodage du type de contenu.

EncodingFromContentType recherche la chaîne UTF-8 dans la valeur donnée AContentType. Si UTF-8 est trouvé, l'encodage est alors UTF-8, sinon ANSI.