Modify

Opened 9 years ago

Closed 8 years ago

#3843 closed defect (fixed)

TypeError: decoding Unicode is not supported

Reported by: anonymous Owned by: Robert Corsaro
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords:
Cc: Justin Rovang Trac Release: 0.11

Description

File "/usr/lib/python2.4/site-packages/AnnouncerPlugin-0.2-py2.4.egg/announcerplugin/distributors/email_distributor.py", line
250, in _do_send
  rootMessage['Subject] = Header(subject, charset)
  File "email/Header.py", line 161, in __init__
  File "email/Charset.py", line 190, in __init__
TypeError: decoding Unicode is not supported

Attachments (0)

Change History (8)

comment:1 Changed 9 years ago by anonymous

Trac Release: 0.100.11

If you force:

charset = 'iso8859-1' on line 227 of email_distributor.py The email appears to come in fine except the font looks larger the screenshot and the subject field is obfuscated:

"=?iso8859-1?q?Ticket_=233=3A_Auto_generate_vPaths_?="

comment:2 Changed 9 years ago by anonymous

this seems to have alleviated my issue around line 259.

rootMessage['Subject'] = Header(subject, charset)
#changed to:

try:
    rootMessage['Subject'] = Header(subject,charset)
except:
    rootMessage['Subject'] = Header(subject)

comment:3 Changed 9 years ago by anonymous

Is this related to #4426 ?

comment:4 Changed 9 years ago by anonymous

Make that #3870

comment:5 Changed 9 years ago by anonymous

Cc: Justin Rovang added; anonymous removed

comment:6 Changed 9 years ago by Aaron Camac

I have the same problem but I got it working now. Posted code from 10/01/08 17:41:56 works so does the change documented in 3929. I suggest you implement 3929 since it does the same thing as the already implemented 3870

comment:7 Changed 8 years ago by anonymous

Owner: changed from Stephen Hansen to Robert Corsaro

comment:8 Changed 8 years ago by Robert Corsaro

Resolution: fixed
Status: newclosed

fixed in r4927

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Robert Corsaro.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.