pub fn decode_host_text_bytes(bytes: &[u8]) -> Result<String, Error>Expand description
Decode bytes from a host text file: UTF-16 LE/BE (with BOM), else UTF-8 (optional BOM).
ยงErrors
Returns io::Error with kind io::ErrorKind::InvalidData if decoding fails.