web.sendmail fails when the message has unicode chars

Bug #180549 reported by Anand Chitipothu on 2008-01-05
2
Affects Status Importance Assigned to Milestone
web.py
High
Anand Chitipothu

Bug Description

Traceback (most recent call last):
  ...
  File "./web/utils.py", line 872, in sendmail
    smtpserver.sendmail(from_address, recipients, message)
  File "/usr/lib/python2.4/smtplib.py", line 696, in sendmail
    (code,resp) = self.data(msg)
  File "/usr/lib/python2.4/smtplib.py", line 493, in data
    self.send(q)
  File "/usr/lib/python2.4/smtplib.py", line 320, in send
    self.sock.sendall(str)
  File "/usr/lib/python2.4/smtplib.py", line 140, in send
    self.sslobj.write(str)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u1234' in position 202: ordinal not in range(128)

Changed in webpy:
assignee: nobody → anandology
importance: Undecided → High
milestone: none → 0.23
status: New → Confirmed
Changed in webpy:
status: Confirmed → Fix Committed
Changed in webpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers