Issue 924806: email.Header.Header() produces wrong headers with utf8 enc. (original) (raw)

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:03 admin set github: 40095
2009-02-09 12:37:05 barry set status: open -> closedresolution: wont fixmessages: +
2009-02-09 07:04:42 ajung set messages: +
2009-02-09 06:14:20 ajaksu2 set type: enhancementmessages: + nosy: + ajaksu2
2004-03-28 09:33:57 ajung create