-
Notifications
You must be signed in to change notification settings - Fork 1
quoted printable
Content automatically generated. Contributions from the community are very welcomed at the bottom of this file.
- Intro
- Dependencies
- Test dependencies
- Foreign dependencies
- API
- Examples
- Author(s)
- Maintainer(s)
- Version
- License
- Tags
Implementation of QP encoding ported from Chibi Scheme.
None
None
None
Allow for RFC1522 quoting for headers by always escaping ?
and _
Return a quoted-printable encoded representation of the input according to the official standard as described in RFC2045.
?
and _
are always encoded for compatibility with RFC1522
encoding, and soft newlines are inserted as necessary to keep each
lines length less than max-col
(default 76). The starting
column may be overridden with start-col
(default 0).
Variation of the above to read and write to ports.
Return a quoted-printable encoded representation of string as
above, wrapped in ...
as per RFC1522, split across
multiple MIME-header lines as needed to keep each lines length
less than max-col
. The string is encoded as is, and the
encoding enc
is just used for the prefix, i.e. you are
responsible for ensuring str
is already encoded according to
enc
.
Return a quoted-printable decoded representation of str
. If
mime-header?
is specified and true, _ will be decoded as as
space in accordance with RFC1522. No errors will be raised on
invalid input.
Variation of the above to read and write to ports.
(import (scheme base) (cyclone quoted-printable) (cyclone test))
(test-group "quoted-printable"
(test "J'interdis aux marchands de vanter trop leur marchandises. Car ils se font vite pédagogues et t'enseignent comme but ce qui n'est par essence qu'un moyen, et te trompant ainsi sur la route à suivre les voilà bientôt qui te dégradent, car si leur musique est vulgaire ils te fabriquent pour te la vendre une âme vulgaire."
(quoted-printable-decode-string
"J'interdis aux marchands de vanter trop leur marchandises. Car ils se font =
vite p=C3=A9dagogues et t'enseignent comme but ce qui n'est par essence qu'=
un moyen, et te trompant ainsi sur la route =C3=A0 suivre les voil=C3=A0 bi=
ent=C3=B4t qui te d=C3=A9gradent, car si leur musique est vulgaire ils te f=
abriquent pour te la vendre une =C3=A2me vulgaire.")))
(test-exit)
Alex Shinn
Justin Ethier
"0.2.0"
BSD
networking