pub fn declared_encoding(data: &[u8]) -> Option<&'static Encoding>
The charset a file declares in its first 4 KB, as a decoder.