GlobalizationSection.ResponseEncoding Property
.NET Framework (current version)
Gets or sets a value specifying the content encoding of HTTP responses.
Assembly: System.Web (in System.Web.dll)
<ConfigurationPropertyAttribute("responseEncoding", DefaultValue := "utf-8")> Public Property ResponseEncoding As Encoding
Property Value
Type: System.Text.EncodingThe content encoding of HTTP responses. The default is UTF-8.
The ResponseEncoding property gets or sets a value specifying the content encoding of HTTP responses. The default encoding is UTF-8.
The following code example demonstrates how to use the ResponseEncoding property. This code example is part of a larger example provided for the GlobalizationSection class.
.NET Framework
Available since 2.0
Available since 2.0
Show: