Skip to main content

detect_encoding

Function detect_encoding 

Source
pub fn detect_encoding(bytes: &[u8]) -> FileEncoding
Expand description

Detect encoding from the leading bytes of a file.