Skip to main content

decode_text

Function decode_text 

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

Decodes CSV bytes with BOM-aware UTF-8 and UTF-16 handling. Without a BOM, valid UTF-8 is kept. Other bytes decode as Windows-1256 when they read as Arabic (see [Cp1256Evidence]), else as Windows-1252.