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.
Format modules can pass a format-specific mapper for text-encoding failures,
while I/O errors are converted via From<std::io::Error>.