mimers

Crates.iomimers
lib.rsmimers
version0.1.1
sourcesrc
created_at2019-09-25 12:35:15.504182
updated_at2019-09-26 01:42:13.935317
descriptionMIME Function
homepage
repositoryhttps://github.com/dongri/mimers
max_upload_size
id167545
size3,917
Dongri Jin (dongri)

documentation

https://docs.rs/mimers

README

mimers

mimers provides useful MIME related functions. For Quoted-Printable and Base64 encoding

examples

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?=
}
Commit count: 5

cargo fmt