Click or drag to resize

NScrapeExtensionsGetEncoding Method

Gets the encoding used by an HttpWebResponse.

Namespace:  NScrape
Assembly:  NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax
public static Encoding GetEncoding(
	this HttpWebResponse webResponse
)

Parameters

webResponse
Type: System.NetHttpWebResponse
The HttpWebResponse for which to determine the content type.

Return Value

Type: Encoding
The content type used by the HttpWebResponse.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpWebResponse. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
If no encoding was specified, the ISO-8859-1 character set is assumed.
See Also