Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8], label: Option<&str>) -> (String, Option<String>)
Expand description

Decode a body according to its declared charset.

Returns the text, plus the charset label to report when the result may be garbled (None when the decoding is exact).