pub fn declared_encoding(name: &str, bytes: &[u8]) -> Option<String>Expand description
The declaration reporter a host hands the source boundary: by the source’s name, the XML prologue for XML-family names, the HTML prescan for HTML names, both tried (prologue first) for a name that says nothing — a plain text file declares nothing either way.