Changeset 582 for trunk/email2trac.py.in


Ignore:
Timestamp:
12/20/11 11:38:10 (12 years ago)
Author:
bas
Message:

urllib.quote can not handele unicode strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r581 r582  
    22222222        if not self.parameters.mailto_cc:
    22232223            self.parameters.mailto_cc = ''
     2224
     2225        ## Bug in urllib.quote function
     2226        #
     2227        if isinstance(subject, unicode):
     2228                subject = subject.encode('utf-8')
    22242229
    22252230        ## use urllib to escape the chars
Note: See TracChangeset for help on using the changeset viewer.