DetectEncoding Method (TextReader)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Detects the encoding of an HTML text provided on a TextReader.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public Encoding DetectEncoding(
	TextReader reader
)
Visual Basic
Public Function DetectEncoding ( _
	reader As TextReader _
) As Encoding
Visual C++
public:
Encoding^ DetectEncoding(
	TextReader^ reader
)

Parameters

reader
Type: System.IO..::..TextReader
The TextReader used to feed the HTML. May not be null.

Return Value

The detected encoding.

See Also