[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
20.2 RFC 2047 – MIME, Part three
This section described the function offered by Bigloo to decode the RFC 2047 encoding used in mail headers (see http://tools.ietf.org/html/rfc2047).
- Bigloo Mail procedure: rfc2047-decode-port ip op [:charset iso-latin-1]
- Bigloo Mail procedure: rfc2047-decode string [:charset iso-latin-1]
-
These functions decode mail header fields encoded using the RFC 2047 specification. The optional argument charset specified in which charset the result should be encoded. The allowed values are:
-
utf-8
-
iso-latin-1
-
cp-1252
Example:
(rfc2047-decode "Poste =?ISO-8859-1?Q?t=E9l=E9phonique?=") ⇒ "Poste téléphonique" (string-for-read (rfc2047-decode "Poste =?ISO-8859-1?Q?t=E9l=E9phonique?=" :charset 'utf8)) ⇒ "Poste t\303\251l\303\251phonique"
-
This document was generated on March 31, 2014 using texi2html 5.0.