pub fn decode(bytes: &[u8]) -> Cow<'_, str>Expand description
A file’s bytes as text: UTF-8, or UTF-16 if the file opens with UTF-16’s byte-order mark, as Debrief’s notes say some mDACS exports of an RRC3’s flight are (none of the project’s sample files is); any byte-order mark dropped, and a byte, or a pair of them, that isn’t a character replaced by U+FFFD.