Struct encoding::codec::korean::Windows949EncodingUnstable [-]  [+] [src]

pub struct Windows949Encoding;

Windows code page 949.

This is a Korean encoding derived from EUC-KR, which is so widespread that most occurrences of EUC-KR actually mean this encoding. Unlike KS X 1001 (and EUC-KR) which only contains a set of 2,350 common Hangul syllables, it assigns remaining 8,822 Hangul syllables to the two-byte sequence which second byte have its MSB unset (i.e. [81-C6] [41-5A 61-7A 81-FE]). Its design strongly resembles that of Shift_JIS but less prone to errors since the set of MSB-unset second bytes is much limited compared to Shift_JIS.

Trait Implementations

impl Encoding for Windows949Encoding

fn name(&self) -> &'static str

fn whatwg_name(&self) -> Option<&'static str>

fn encoder(&self) -> Box<Encoder>

fn decoder(&self) -> Box<Decoder>

fn encode(&self, input: &str, trap: EncoderTrap) -> Result<Vec<u8>, SendStr>

fn decode(&self, input: &[u8], trap: DecoderTrap) -> Result<String, SendStr>

Derived Implementations

impl Clone for Windows949Encoding

fn clone(&self) -> Windows949Encoding

fn clone_from(&mut self, source: &Self)