pub fn detect_encoding(data: &[u8]) -> EncodingInfoExpand description
Detect the encoding of the data.
Currently only supports UTF-8 detection. Returns true if valid UTF-8.
pub fn detect_encoding(data: &[u8]) -> EncodingInfoDetect the encoding of the data.
Currently only supports UTF-8 detection. Returns true if valid UTF-8.