9 releases
0.1.1 | Dec 26, 2021 |
---|---|
0.1.0 | Dec 25, 2021 |
0.0.7 | Dec 25, 2021 |
#1214 in Encoding
16KB
286 lines
TIS-620
A library for handling Thai Industrial Standard 620 (TIS-620) characters.
Example usage.
let message = "แมว";
let encoded = tis620::encode(&message).expect("TIS-620 encoded");
let decoded = tis620::decode(&encoded).expect("Original message");
assert_eq!(decoded, message);
tis620 vs encoding_rs(v0.8.30)
tis620::encode
is slightly faster thanencoding_rs::WINDOWS_874::encode
tis620
provide lossy encodingencoding_rs::WINDOWS_874::decode
is 2x faster thantis620::decode
This crate is inspired by varokas/tis620.