![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
![]() ![]() |
A Sandcastle Documented Class Library |
HtmlDocument..::..DetectEncoding Method (TextReader) |
HtmlDocument Class See Also Send Feedback |
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.