Skip to main content

encode

Function encode 

Source
pub fn encode(text: &str) -> Result<Vec<u8>, char>
Expand description

Text as HP bytes: ASCII and Latin-1 as themselves, the math and Greek characters of 128-159 from their Unicode forms (x̄ is x with a combining macron). Err names the first character the set lacks (C1 controls and anything beyond U+00FF that is not one of 128-159).