[][src]Static encoding_rs::ISO_2022_JP

pub static ISO_2022_JP: &'static Encoding

The ISO-2022-JP encoding.

This the primary pre-UTF-8 encoding for Japanese email. It uses the ASCII byte range to encode non-Basic Latin characters. It's the only encoding supported by this crate whose encoder is stateful.

Index visualization, Visualization of BMP coverage

This encoding roughly matches the Windows code page 50220. Notably, Windows uses U+30FB in place of the REPLACEMENT CHARACTER and otherwise differs in error handling.

This will change from static to const if Rust changes to make the referent of pub const FOO: &'static Encoding unique cross-crate, so don't take the address of this static.