pub fn decode(bytes: &[u8], meta: bool) -> StringExpand description
Bytes as text: byte order mark, then (for HTML, meta = true) a
<meta charset> / http-equiv declaration in the first 1024 bytes, then
UTF-8 if valid (a sequence cut at the very end does not count) or mostly
valid (a stray bad byte in a solver log becomes one U+FFFD, the µ and
° around it stay), else Windows-1252. An unknown label is ignored.
Never fails.