package mrmime
Mr. MIME
Install
dune-project
Dependency
Authors
Maintainers
Sources
mrmime-v0.3.2.tbz
sha256=0fe37cf06ef25a0a0fef7e485b836188824528d1425743cc5c479bc281262b31
sha512=f15bf2cee0998c162886a512a680a415529db39dbdea241c910c1fae7cad5c1bb94afe13ee247ac52149349f08dc922d4d4f37920fe54a0a0e6d0ab40ee2170e
doc/mrmime/Mrmime/Encoded_word/index.html
Module Mrmime.Encoded_wordSource
Source
type charset = [ | `UTF_8| `UTF_16| `UTF_16BE| `UTF_16LE| Rosetta.encoding| `US_ASCII| `Charset of string
]make ~encoding x returns an encoded word according encoding (Quoted Printable encoding or Base64 encoding). x must be a valid UTF-8 string. charset of encoded word will be, by the way, "UTF-8".
NOTE: If you expect to generate an encoded word with something else than UTF-8 (like latin1), we decided to not handle this case and just produce valid UTF-8 contents in any cases.
Alias of make but raises an Invalid_argument if it fails.
Accessors.
Pretty-printer.
Equal.
charset_of_string s returns charset of well-formed charset identifier s (according IANA).
normalize_to_utf8 ~charset s maps a source s which is encoded with the charset charset and try to map/normalize it to UTF-8.
of_string v tries to parse v as an encoded-word (according RFC 2047).