Skip to main content

from_utf8_lossy

Function from_utf8_lossy 

Source
pub fn from_utf8_lossy(bytes: &[u8]) -> LossyUtf8<'_>
Expand description

Wraps a binary string that may contain non-UTF-8 bytes for formatting. Invalid bytes are formatted as \u{FFFFD}.