Crates.io | utf8mb3 |
lib.rs | utf8mb3 |
version | 0.1.2 |
source | src |
created_at | 2023-03-19 15:13:57.502248 |
updated_at | 2023-03-19 15:28:19.539026 |
description | Let mysql's utf8 encoding store four-byte characters such as emoji(让 mysql 的 utf8 编码存储表情符号这类的四字节字符). |
homepage | https://github.com/WumaCoder/utf8mb3 |
repository | https://github.com/WumaCoder/utf8mb3.git |
max_upload_size | |
id | 814462 |
size | 12,385 |
utf8mb3 core implementation module.
cargo add utf8mb3
let str = "😊";
let result = utf8mb4::encode(str);
println!("encode: {}", result); // encode:
println!("decode: {}", utf8mb4::decode(&result)); // decode: 😊
MIT