Export (0) Print
Expand All

HttpRequest.ContentEncoding Property

Gets or sets the character set of the entity-body.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public:
property Encoding^ ContentEncoding {
	Encoding^ get ();
	void set (Encoding^ value);
}
/** @property */
public Encoding get_ContentEncoding ()

/** @property */
public void set_ContentEncoding (Encoding value)

public function get ContentEncoding () : Encoding

public function set ContentEncoding (value : Encoding)

Property Value

An Encoding object representing the client's character set.

Default content encoding can be specified in the globalization Element (ASP.NET Settings Schema) of a configuration file. If content encoding is also specified by the client, the default configuration settings are overridden.

The following code example assigns a value representing the description of the current HTTP encoding to a string variable.

No code example is currently available or this language may not be supported.
String encodingType;
encodingType = get_Request().get_ContentEncoding().get_EncodingName();

var encodingType : String = Request.ContentEncoding.EncodingName
  

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft