Crates.io | rfc2047 |
lib.rs | rfc2047 |
version | 0.1.1 |
source | src |
created_at | 2019-10-03 15:07:27.72369 |
updated_at | 2019-10-03 15:16:09.658285 |
description | A simple encoder for RFC2047 encoded words |
homepage | |
repository | https://github.com/Valodim/rust-rfc2047 |
max_upload_size | |
id | 169644 |
size | 8,162 |
Offers an encoder for RFC 2047 encoded words.
use rfc2047::rfc2047_encode;
#[test]
fn test_encode_rfc2047() {
assert_eq!(
"Foo =?utf-8?q?a=C3=A4b?= =?utf-8?q?_=C3=A4?= bar",
rfc2047_encode("Foo aäb ä bar"),
);
}
Words are encoded or not encoded as a whole. Only quoted-printable encoding is used.