HttpListenerResponse.ContentEncoding Property


Gets or sets the Encoding for this response's OutputStream.

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

member ContentEncoding : Encoding with get, set

Property Value

Type: System.Text.Encoding

An Encoding object suitable for use with the data in the OutputStream property, or null if no encoding is specified.

An Encoding object can be used to convert byte sequences into character sets (code pages) and characters into byte sequences.

The following code example demonstrates using this property.

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

.NET Framework
Available since 2.0
Return to top