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 licht-t
Recipients licht-t
Date 2018-05-18.12:12:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526645522.46.0.682650639539.issue33568@psf.upfronthosting.co.za>
In-reply-to
Content
policy.utf8 is False, but non-ascii are not well-handled.
Repro. code.

```
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19) 
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from email.message import EmailMessage
>>> from email.policy import default
>>> 
>>> policy = default.clone()
>>> policy.utf8
False
>>> msg = EmailMessage()
>>> msg["Subject"] = "á"
>>> policy.fold("Subject", msg["Subject"])
'Subject: =?utf-8?q?=C3=A1?=\n'
>>> policy.fold("Subject", 'á')
'Subject: á\n'
```
History
Date User Action Args
2018-05-18 12:12:02licht-tsetrecipients: + licht-t
2018-05-18 12:12:02licht-tsetmessageid: <1526645522.46.0.682650639539.issue33568@psf.upfronthosting.co.za>
2018-05-18 12:12:02licht-tlinkissue33568 messages
2018-05-18 12:12:02licht-tcreate