[issue12552] email.MIMEText overide BASE64 for utf8 charset

Blame-me Jaillie report at bugs.python.org
Wed Jul 13 19:33:10 CEST 2011


Blame-me Jaillie <darkshado.1972 at gmail.com> added the comment:

Very much obliged to you - as pointed out by R David Murray:

  from email import charset
  charset.add_charset('utf-8', charset.SHORTEST, charset.QP)

This works exactly as expected - but to expand for anyone else who happens across this, this will result in quoted printable transfer encoding. Removing the final 'charset.QP' results in (for me) the desired 7bit. 

Again, sincere thanks to R David Murray for pointing me in the correct way, and making my first experience with a Python 'issue' painless and flame free. Really appreciated.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12552>
_______________________________________


More information about the Python-bugs-list mailing list