Skip to content
/ tis620 Public

A library for handling Thai Industrial Standard 620 (TIS-620) characters.

License

Notifications You must be signed in to change notification settings

nui/tis620

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TIS-620

Latest Version Rust Documentation Crates.io Crates.io

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);

more examples

tis620 vs encoding_rs(v0.8.30)

  • tis620::encode is slightly faster than encoding_rs::WINDOWS_874::encode
  • tis620 provide lossy encoding
  • encoding_rs::WINDOWS_874::decode is 2x faster than tis620::decode

This crate is inspired by varokas/tis620.

About

A library for handling Thai Industrial Standard 620 (TIS-620) characters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages