https://github.com/dongri/mimers
MIME Function
https://github.com/dongri/mimers
encode-word mime rfc2047 rust
Last synced: about 2 months ago
JSON representation
MIME Function
- Host: GitHub
- URL: https://github.com/dongri/mimers
- Owner: dongri
- Created: 2019-09-25T12:29:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-26T08:35:05.000Z (over 5 years ago)
- Last Synced: 2025-02-28T09:24:45.276Z (2 months ago)
- Topics: encode-word, mime, rfc2047, rust
- Language: Rust
- Homepage: https://crates.io/crates/mimers
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mimers
mimers provides useful MIME related functions. For Quoted-Printable and Base64 encoding
### examples
```rust
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?=
}
```