Skip to main content

read_file_encoded

Function read_file_encoded 

Source
pub fn read_file_encoded(path: &Path, encoding: &str) -> Result<String>
Expand description

Read file content with a specified encoding. Supports any encoding label recognized by the Encoding Standard (e.g., “utf-8”, “latin-1”, “iso-8859-1”, “windows-1252”, “ascii”).