[issue20845] email.utils.formataddr encodes incorrectly

2014-03-03 Thread Michael JasonSmith
Michael JasonSmith added the comment: I care enough to lodge an issue, but I lack the conviction in order to belabour the point in python-dev! I'll mark this issue as closed. Hopefully the work-around in my original post will help others :) -- resolution: -> wont fix stat

[issue20845] email.utils.formataddr encodes incorrectly

2014-03-03 Thread Michael JasonSmith
New submission from Michael JasonSmith: The email.utils.formataddr function is used to encode a name-address 2-tuple for use as an email message. If the name contains a non-ASCII character it needs to be encoded. This happens correctly in Python 3.3.2, but incorrectly in Python 2.7.5. Ideally