subject encoding: What's =?ISO-8859-1?Q?
Barry A. Warsaw
barry at digicool.com
Tue May 29 17:57:33 EDT 2001
>>>>> "MB" == Martin Bless <m.bless at gmx.de> writes:
MB> I've started investigating how Barry Warsaw's 'mimelib' works.
MB> (Version 0.2, http://mimelib.sourceforge.net/).
Excellent! Except, grab version 0.3 since there were some useful
patches and a few API changes.
MB> Great, with mimelib I can build mime-messages from scratch and
MB> the package offers a lot to learn from. For example, the
MB> subject of the message can be set by msg.['subject'] =
MB> 'Greetings!'
MB> However, if I create a message with Outlook Express (Windows)
MB> and the subject has some german Umlaute ("Viele Grüße"), the
MB> subject looks like this: Subject:
MB> =?ISO-8859-1?Q?Viele_Gr=FC=DFe?=
MB> (1) What kind of encoding is this? Hhm, especially the
MB> =?ISO-8859-1?Q? part? Somewhere in the RFCs?
RFC 2047 covers encoding non-ASCII text into message headers. This is
on my plate to add for mimelib, probably by converting such headers to
and from unicode strings.
-Barry
More information about the Python-list
mailing list