pub fn sniff_html_encoding(bytes: &[u8], opts: &HtmlParseOptions) -> EncodingExpand description
Sniff the encoding of an HTML byte stream per the WHATWG algorithm. Always returns some encoding — falls back to Windows-1252 when no signal is found.
pub fn sniff_html_encoding(bytes: &[u8], opts: &HtmlParseOptions) -> EncodingSniff the encoding of an HTML byte stream per the WHATWG algorithm. Always returns some encoding — falls back to Windows-1252 when no signal is found.