DetectEncoding Method (Stream)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Detects the encoding of an HTML stream.

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

Syntax

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

Parameters

stream
Type: System.IO..::..Stream
The input stream. May not be null.

Return Value

The detected encoding.

See Also