detect_text_encoding

Function detect_text_encoding 

Source
pub fn detect_text_encoding(data: &[u8]) -> Option<IdentifiedEncoding>
Expand description

Identifies the character set encoding family of data. Ported from file_encoding in encoding.c.