System.Web Namespace HttpRequest Class
Gets the character set of the entity-body.
[ VB ]
Public ReadOnly Property ContentEncoding As Encoding
[ C# ]
public Encoding ContentEncoding {get;}
[ C++ ]
public: __property Encoding* get_ContentEncoding ( );
[ JScript ]
public function get ContentEncoding ( ) : Encoding;
An Encoding object representing the client's character set.
Default ContentEncoding can be specified in an ASP.NET configuration file. If ContentEncoding is specified by the client, the default configuration settings are overridden.
The following example shows the simplest way to retrieve and display the value representing the HTTP encoding of the current request.
<%= Request.ContentEncoding.EncodingName %>
Show me
HttpRequest Members