detect_encoding

Function detect_encoding 

Source
pub fn detect_encoding(data: &[u8]) -> EncodingInfo
Expand description

Detect the encoding of the data.

Currently only supports UTF-8 detection. Returns true if valid UTF-8.