On Friday 23 November 2007 12:23:19 Pierre Habouzit wrote:

> > Converting the translations to utf-8 seemingly was not enough, the mail
> > subjects still contain wrongly encoded characters. The command
> >
> >  [EMAIL PROTECTED] apt-listchanges -a -f pager --email-address=xxxx foo.deb
> >
> > results in a mail with this header entry:
> >
> >  Subject: apt-listchanges: Changelogs fXr denkbrett
> >
> > It should, if I am not mistaken, look like this:
> >
> >  Subject: =?utf-8?q?apt-listchanges=3A_Changelogs_f=C3=BCr_denkbrett?=
>
>   Yes, I know this is a pythong bug that I cannot do anything about in a
> simple way.

I don't think it's a Python bug.
It does not automatically encode subject lines, yes, but this is expected and 
documented.

The python docs say:
"If you want to include non-ASCII characters in your email headers, say in the 
Subject: or To: fields, you should use the Header class and assign the field 
in the Message object to an instance of Header instead of using a string for 
the header value. Import the Header class from the email.header module."

See http://docs.python.org/lib/module-email.header.html


-- 
http://daniel.hahler.de/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to