[issue12552] email.MIMEText overide BASE64 for utf8 charset

2011-07-13 Thread R. David Murray
R. David Murray added the comment: Good point. In 2.x that will work, and will give you the 8bit CTE at need, as long as you pass encoded text to MIMEText (as opposed to unicode...which it doesn't really handle correctly if I recall right). -- ___

[issue12552] email.MIMEText overide BASE64 for utf8 charset

2011-07-13 Thread Blame-me Jaillie
Blame-me Jaillie 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

[issue12552] email.MIMEText overide BASE64 for utf8 charset

2011-07-13 Thread R. David Murray
R. David Murray added the comment: Opened issue 12553 for the 8bit feature request. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue12552] email.MIMEText overide BASE64 for utf8 charset

2011-07-13 Thread R. David Murray
R. David Murray added the comment: This should do what you want: from email import charset charset.add_charset('utf-8', charset.SHORTEST, charset.QP) This will override the default handling of utf-8 (which is BASE64, as you note). If this doesn't solve your problem please reopen the issue