pub fn decode_label(
label: &str,
bytes: &[u8],
limit: usize,
) -> Result<String, Error>Expand description
Decode as the WHATWG Encoding Standard’s “decode”: a UTF-8 or UTF-16 byte-order mark wins over the
label (and is dropped), else the label’s encoding; malformed input becomes U+FFFD, never an error.
Limit: more than limit bytes in or out; Unsupported: no label of the standard (and no byte-order mark).