HttpMediaTypeHeaderValue.CharSet Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the character set of the entity-body used in the Content-Type HTTP header.
public:
property Platform::String ^ CharSet { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring CharSet();
void CharSet(winrt::hstring value);
public string CharSet { get; set; }
var string = httpMediaTypeHeaderValue.charSet;
httpMediaTypeHeaderValue.charSet = string;
Public Property CharSet As String
Property Value
The character set of the entity-body.
Remarks
HTTP uses character set names to indicate or negotiate the character encoding scheme of a textual representation [RFC6365]. A CharSet property is identified by a case-insensitive token.
Character set names ought to be registered in the IANA Character Set registry.