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.

[Visual Basic]
Public Property Charset As String
public string Charset {get; set;}
public: __property String* get_Charset();
public: __property void set_Charset(String*);
public function get Charset() : String;
public function set Charset(String);

Property Value

The HTTP character set of the output stream.


Exception Type Condition
HttpException Charset was set after headers were sent.


Charset can be set to a null reference (Nothing in Visual Basic) to suppress the HTTP Content-Type header.


The following example takes action only if the character set of the output stream is Central European (ISO).

[Visual Basic] 
If Response.Charset = "iso-8859-2" Then
 End If

if (Response.Charset == "iso-8859-2") 
   // ...

if (Response->Charset->Equals(S"iso-8859-2")) 
   // ...

if(Response.Charset == "iso-8859-2"){


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft