pub fn detect_encoding_or_binary( bytes: &[u8], truncated: bool, ) -> (Encoding, bool)
Detect the text encoding and whether content is binary.
Returns (encoding, is_binary).
(encoding, is_binary)