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 barry, mitya57, r.david.murray
Date 2012-03-21.17:26:45
SpamBayes Score 0.0065250006
Marked as misclassified No
Message-id <1332350806.66.0.282131760055.issue14360@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, you are right.  I even noted that bug in my PyCon talk, but immediately forgot about it :(  I do intend to fix it.

You can get it to work by explicitly passing the charset:

  >>> x = MIMEText('йцукен', _charset='utf8')
  >>> str(x)
'Content-Type: text/plain; charset="utf8"\nMIME-Version: 1.0\nContent-Transfer-Encoding: base64\n\n0LnRhtGD0LrQtdC9\n'

When I asked the use case, I meant specifically for calling encode_quopri, etc.  Given the above, do you need it anymore?
History
Date User Action Args
2012-03-21 17:26:46r.david.murraysetrecipients: + r.david.murray, barry, mitya57
2012-03-21 17:26:46r.david.murraysetmessageid: <1332350806.66.0.282131760055.issue14360@psf.upfronthosting.co.za>
2012-03-21 17:26:46r.david.murraylinkissue14360 messages
2012-03-21 17:26:45r.david.murraycreate