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
some mDACS exports of an RRC3’s flight are; any byte-order mark dropped, and a byte, or a pair
of them, that isn’t a character replaced by U+FFFD. One such export, among the project’s sample
files, opens after its UTF-16 mark with a UTF-8 mark’s three bytes, each written as a UTF-16
character (): they are dropped too, as the mark they are.