Implementation of the RFC 2407 encoding.
What is it
The RFC 2047 defines an encoding to allow for textual message bodies in character sets other than US-ASCII, among others.
The library defines two functions for de- and encoding according to the RFC 2047.
The package export three functions:
(encode (str &optional &key (encoding :b) (charset :utf-8)))
encodes the given string with the given encoding (b or q) and charset.
(decode (str &key (start 0) (end (length str))))
decodes the given string, or parts thereof if start and end are defined.
(decode* (str &key (start 0) (end (length str))))
decodes a mixed string, i.e., not all words need to be encoded. This
method detects the encoded parts.
Patches for Other Software
To enable RFC 2047 compliant behaviour in Hunchentoot you can apply this patch: hunchentoot-auth-rfc2047.patch (for version 0.15.6).
- cl-rfc2047-0.3.tar.gz (GPG signature) (23.05.2008)
- cl-rfc2047-0.2.tar.gz (GPG signature) (18.05.2008)
- cl-rfc2047-0.1.tar.gz (GPG signature) (17.05.2008)