Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8]) -> String
Expand description

Decode bytes as text: BOM-aware UTF-8/UTF-16, falling back to Windows-1252 (a superset of Latin-1) when the bytes are not valid UTF-8.