Skip to main content

decode_bytes

Function decode_bytes 

Source
pub fn decode_bytes(
    bytes: &[u8],
    encoding: FileEncoding,
) -> Result<String, String>
Expand description

Decode raw bytes to a String based on the detected encoding. For UTF-16, also normalizes CRLF to LF.