Skip to main content

from_native_encoding

Function from_native_encoding 

Source
pub fn from_native_encoding(
    bytes: &[u8],
) -> Result<String, EncodingConversionError>
Expand description

Decodes bytes using the current native system encoding.

ยงErrors

Returns EncodingConversionError if the system encoding cannot be detected or the bytes cannot be decoded with it.