Re: stmplib MIMEText charset weirdness

2013-02-26 Thread Terry Reedy
On 2/25/2013 11:00 PM, Adam W. wrote: Can someone explain to me why I can't set the charset after the fact. Email was revised to v.6 for 3.3, so the immediate answer to both your why questions is 'because email was not revised yet'. text = MIMEText('❤¥'.encode('utf-8'), 'html') In 3.3 thi

Re: stmplib MIMEText charset weirdness

2013-02-26 Thread Adam W.
On Tuesday, February 26, 2013 2:10:28 AM UTC-5, Steven D'Aprano wrote: > On Mon, 25 Feb 2013 20:00:24 -0800, Adam W. wrote: > > The documentation for MIMEText is rather terse, but it implies that the > > parameter given should be a string, not bytes: > > > > http://docs.python.org/3.2/library