Re: send_mail UnicodeDecodeError: 'ascii' codec can't decode byte

2010-03-15 Thread Michał Klich
Yes it did. I must have messed up something as i tried unicode(). Thanks On Mar 14, 5:01 pm, "ge...@aquarianhouse.com" wrote: > it should work with: > > body = unicode("Tre¶æ", 'utf-8') > > On Mar 14, 3:49 pm, Micha³ Klich wrote:> Hi, > > I do not fully understand how this works. > > > I have >

Re: send_mail UnicodeDecodeError: 'ascii' codec can't decode byte

2010-03-14 Thread ge...@aquarianhouse.com
it should work with: body = unicode("Treść", 'utf-8') On Mar 14, 3:49 pm, Michał Klich wrote: > Hi, > I do not fully understand how this works. > > I have > subject = "Temat" > body = "Treść" > from = some.em...@dot.com > to = some.em...@dot.com > > send_email(subject, body, from, to) prints out

send_mail UnicodeDecodeError: 'ascii' codec can't decode byte

2010-03-14 Thread Michał Klich
Hi, I do not fully understand how this works. I have subject = "Temat" body = "Treść" from = some.em...@dot.com to = some.em...@dot.com send_email(subject, body, from, to) prints out Traceback (most recent call last): File "/usr/lib64/python2.6/logging/__init__.py", line 773, in emit strea