encoding_rs

Static WINDOWS_1258

source
pub static WINDOWS_1258: &'static Encoding
Expand description

The windows-1258 encoding.

This is the Vietnamese encoding for Windows.

Index visualization, Visualization of BMP coverage

This encoding matches the Windows code page 1258 when used in the non-normalizing mode. Unlike with the other single-byte encodings, the result of decoding is not necessarily in Normalization Form C. On the other hand, input in the Normalization Form C is not encoded without replacement. In general, it’s a bad idea to encode to encodings other than UTF-8, but this encoding is especially hazardous to encode to.

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.