Skip to main content

sniff_html_encoding

Function sniff_html_encoding 

Source
pub fn sniff_html_encoding(bytes: &[u8], opts: &HtmlParseOptions) -> Encoding
Expand 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.