decode_utf8_lossy

Function decode_utf8_lossy 

Source
pub fn decode_utf8_lossy(bytes: &[u8]) -> EncodedText
Expand description

Decode bytes as UTF-8, replacing invalid sequences.

This is the default behavior for rust-expect. Invalid UTF-8 sequences are replaced with the Unicode replacement character (U+FFFD).