Modify

Opened 6 years ago

Closed 6 years ago

#3843 closed defect (fixed)

TypeError: decoding Unicode is not supported

Reported by: anonymous Owned by: doki_pen
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords:
Cc: thinice@… 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 6 years ago by anonymous

  • Trac Release changed from 0.10 to 0.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 6 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 6 years ago by anonymous

Is this related to #4426 ?

comment:4 Changed 6 years ago by anonymous

Make that #3870

comment:5 Changed 6 years ago by anonymous

  • Cc thinice@… added

comment:6 Changed 6 years ago by acamac

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 6 years ago by anonymous

  • Owner changed from ixokai to doki_pen

comment:8 Changed 6 years ago by doki_pen

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r4927

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.