Function base256u::encode_papu

source ·
pub fn encode_papu(byte: u8) -> char
Expand description

Encode function for encoding to printable-ascii-preserving Unicode. 0x00..=0x1F is mapped to the range starting at U+B0 to map into the Latin-1 Supplement block in the first range that is 8-byte aligned and fully printable, skipping NBSP and SHY. 0x20..=0x7E are mapped to the same bytes as printable ASCII. 0x7F is arbitrarily mapped from ASCII ESC to §. 0x80..=0xFF mapped to the range starting at U+100, Latin Extended-A, with the exception of 0xC9, which is mapped arbitrarily to ¤ to avoid the deprecated character at that codepoint.