utf8mb3

Crates.ioutf8mb3
lib.rsutf8mb3
version0.1.2
sourcesrc
created_at2023-03-19 15:13:57.502248
updated_at2023-03-19 15:28:19.539026
descriptionLet mysql's utf8 encoding store four-byte characters such as emoji(让 mysql 的 utf8 编码存储表情符号这类的四字节字符).
homepagehttps://github.com/WumaCoder/utf8mb3
repositoryhttps://github.com/WumaCoder/utf8mb3.git
max_upload_size
id814462
size12,385
Lyda (Lydanne)

documentation

README

utf8mb3 core

utf8mb3 core implementation module.

Start

cargo add utf8mb3

Use


  let str = "😊";
  let result = utf8mb4::encode(str);
  println!("encode: {}", result); // encode: 
  println!("decode: {}", utf8mb4::decode(&result)); // decode: 😊

License

MIT

Commit count: 42

cargo fmt