asp.net.ph

Request.ContentEncoding Property

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;

Property Value

An Encoding object representing the client's character set.

Remarks

Default ContentEncoding can be specified in an ASP.NET configuration file. If ContentEncoding is specified by the client, the default configuration settings are overridden.

Example

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 

See Also

HttpRequest Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note