Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpResponse::Charset Property

 

Gets or sets the HTTP character set of the output stream.

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

public:
property String^ Charset {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The HTTP character set of the output stream.

Exception Condition
HttpException

The Charset property was set after headers were sent.

The Charset property can be set to null to suppress the HTTP Content-Type header.

The following example checks whether the character set of the output stream is Central European (ISO).

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft