Function decode_to_string

Source
pub fn decode_to_string(
    encoding: Encoding,
    data: &[u8],
    check: bool,
) -> Result<String, Error>
Expand description

Decodes a byte slice to a string using the specified encoding.

  • check - If true, checks for decoding errors and returns an error if any.