| Crates.io | tis620 |
| lib.rs | tis620 |
| version | 0.1.1 |
| created_at | 2021-12-23 20:27:57.957891+00 |
| updated_at | 2021-12-26 00:25:33.461167+00 |
| description | A library for handling Thai Industrial Standard 620 (TIS-620) characters |
| homepage | |
| repository | https://github.com/nui/tis620 |
| max_upload_size | |
| id | 502390 |
| size | 46,390 |
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::encode is slightly faster than encoding_rs::WINDOWS_874::encodetis620 provide lossy encodingencoding_rs::WINDOWS_874::decode is 2x faster than tis620::decodeThis crate is inspired by varokas/tis620.