Export (0) Print
Expand All

GlobalizationSection.ResponseEncoding Property

Gets or sets a value specifying the content encoding of HTTP responses.

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

public Encoding ResponseEncoding { get; set; }
/** @property */
public Encoding get_ResponseEncoding ()

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

public function get ResponseEncoding () : Encoding

public function set ResponseEncoding (value : Encoding)

Not applicable.

Property Value

The 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.

// Display ResponseEncoding property.
Console.WriteLine("ResponseEncoding: {0}",
  configSection.ResponseEncoding);

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft