encode_win1252

Function encode_win1252 

Source
fn encode_win1252(s: &str) -> Result<Vec<u16>, Error>
Expand description

Encodes the given string using the Windows-1252 encoding for use with built-in PDF fonts, returning an error if it contains unsupported characters.