decode_text

Function decode_text 

Source
pub fn decode_text(bytes: &[u8], encoding: TextEncoding) -> String
Expand description

Decodes bytes into Unicode text.

For single-byte encodings such as Windows-1252, decoding is lossless across all byte values.