This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xnovakj
Recipients
Date 2005-12-13.11:09:30
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Python: 2.4
Module: email.Header
Method: encode()
In some cases returns unicode (example on line 5)

1>> from email.Header import Header

2>> Header(unicode('abcá','iso-8859-2'),'utf-8').encode()
'=?utf-8?b?YWJjw6E=?='

3>> Header('abc','utf-8').encode()
'=?utf-8?q?abc?='

4>> Header(u'abc','utf-8').encode()
'abc' ???

5>> Header('abc','iso-8859-2').encode()
u'=?iso-8859-2?q?abc?=' (P2.4)

6>> Header('abc','iso-8859-2').encode()
'=?iso-8859-2?q?abc?=' (P2.3)
History
Date User Action Args
2007-08-23 14:36:45adminlinkissue1379416 messages
2007-08-23 14:36:45admincreate