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.

classification
Title: email.Header.Header() produces wrong headers with utf8 enc.
Type: enhancement Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: barry Nosy List: ajaksu2, ajung, barry
Priority: normal Keywords:

Created on 2004-03-28 09:33 by ajung, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg20367 - (view) Author: Andreas Jung (ajung) Date: 2004-03-28 09:33
If you pass 'utf8' as encoding to the Header() (e.g.
for the subject)
then most mailer can not decode the subject because
they expect
'utf-8' and not 'utf8'. Maybe there should be a check
for this encoding in the code.
msg81440 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-02-09 06:14
Is the perceived incompatibility (still) a real problem?
msg81449 - (view) Author: Andreas Jung (ajung) Date: 2009-02-09 07:04
No idea - this bug is five years old!
msg81455 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2009-02-09 12:37
This isn't a bug in Python, since it does the right thing by aliasing
'utf8' with 'utf-8'.  If this is incompatible with external mail tools,
then you should use 'utf-8' instead, but I don't think Python should
change that underneath you.
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40095
2009-02-09 12:37:05barrysetstatus: open -> closed
resolution: wont fix
messages: + msg81455
2009-02-09 07:04:42ajungsetmessages: + msg81449
2009-02-09 06:14:20ajaksu2settype: enhancement
messages: + msg81440
nosy: + ajaksu2
2004-03-28 09:33:57ajungcreate