Edgewall Software

Ticket #441: email.utf8.diff

File email.utf8.diff, 0.5 KB (added by EricDaspet, 5 years ago)

diff for correction (worksforme, no more)

  • trunk/trac/Notify.py

     
    129129    def send(self, rcpt, mime_headers={}): 
    130130        from email.MIMEText import MIMEText 
    131131        body = self.cs.render() 
    132         msg = MIMEText (body) 
     132        msg = MIMEText (body, 'plain', 'UTF-8') 
    133133        msg['X-Mailer'] = 'Trac %s, by Edgewall Software' % __version__ 
    134134        msg['X-Trac-Version'] =  __version__ 
    135135        projname = self.env.get_config('project','name')