pub fn write_cp1252<W: Write, E, F>(
writer: &mut W,
text: &str,
context: String,
map_text_error: F,
) -> Result<(), E>Expand description
Encodes text as Windows-1252 and writes it to writer.
§Errors
Whatever map_text_error builds from context where a character has no
Windows-1252 form, and the writer’s I/O error converted through
From<std::io::Error>. Encoding runs first, so a text failure writes
nothing.