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 r.david.murray
Recipients aldwinaldwin, barry, maxking, r.david.murray, yunlee
Date 2019-08-01.18:45:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564685158.94.0.152575707797.issue37532@roundup.psfhosted.org>
In-reply-to
Content
Right, and the python email package fully supports non ascii:

>>> msg = EmailMessage()
>>> msg['Subject'] = "Panamá- Casco Antiguo"
>>> bytes(msg)
b'Subject: =?utf-8?q?Panam=C3=A1-?= Casco Antiguo\n\n'
>>> str(msg)
'Subject: Panamá- Casco Antiguo\n\n'
>>> msg['subject']
'Panamá- Casco Antiguo'

make_header also supports non-ascii, you just have to tell it what charset you want to use.  Like I said, make_header is part of the *legacy* API, and it really is a pain to use.  That's why we wrote the new API.
History
Date User Action Args
2019-08-01 18:45:59r.david.murraysetrecipients: + r.david.murray, barry, maxking, aldwinaldwin, yunlee
2019-08-01 18:45:58r.david.murraysetmessageid: <1564685158.94.0.152575707797.issue37532@roundup.psfhosted.org>
2019-08-01 18:45:58r.david.murraylinkissue37532 messages
2019-08-01 18:45:58r.david.murraycreate