| Crates.io | mimers |
| lib.rs | mimers |
| version | 0.1.1 |
| created_at | 2019-09-25 12:35:15.504182+00 |
| updated_at | 2019-09-26 01:42:13.935317+00 |
| description | MIME Function |
| homepage | |
| repository | https://github.com/dongri/mimers |
| max_upload_size | |
| id | 167545 |
| size | 3,917 |
mimers provides useful MIME related functions. For Quoted-Printable and Base64 encoding
extern crate mimers;
use mimers::{WordEncoder, Encoding};
fn main() {
let encoder = WordEncoder::new("UTF-8", Encoding::QEncoding);
let encoded_word = encoder.encode_word("abcあいうえお".to_string());
println!("{}", encoded_word); // =?UTF-8?Q?abc=E3=81=82=E3=81=84=E3=81=86=E3=81=88=E3=81=8A?=
}