subject encoding: What's =?ISO-8859-1?Q?
thomas.heller at ion-tof.com
Tue May 29 22:08:34 CEST 2001
"Martin Bless" <m.bless at gmx.de> wrote in message news:3b14fbae.947829 at news.muenster.de...
> I've started investigating how Barry Warsaw's 'mimelib' works.
> (Version 0.2, http://mimelib.sourceforge.net/). Great, with mimelib I
> can build mime-messages from scratch and the package offers a lot to
> learn from. For example, the subject of the message can be set by
> msg.['subject'] = 'Greetings!'
> However, if I create a message with Outlook Express (Windows) and the
> subject has some german Umlaute ("Viele Grüße"), the subject looks
> like this:
> Subject: =?ISO-8859-1?Q?Viele_Gr=FC=DFe?=
> (1) What kind of encoding is this? Hhm, especially the =?ISO-8859-1?Q?
> part? Somewhere in the RFCs?
> (2) And do we already have a function in the Python lib to generate
> this encoding?
Sure, its called mimify.mime_decode_header(text)
More information about the Python-list