Show
Ignore:
Timestamp:
12/07/08 21:49:04 (15 years ago)
Author:
jerome
Message:

Added proper encoding to fix #35.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r3463 r3464  
    942942                else : 
    943943                    try : 
    944                         msg = MIMEText(fullmessage, _charset=self.charset) 
    945                         msg["Subject"] = Header(_("Print Quota"), charset=self.charset, errors="replace") 
     944                        msg = MIMEText(fullmessage.encode(self.charset, 
     945                                                          "replace"), 
     946                                       _charset=self.charset) 
     947                        subject = _("Print Quota") 
     948                        msg["Subject"] = Header(subject.encode(self.charset, "replace"), 
     949                                                charset=self.charset, 
     950                                                errors="replace") 
    946951                        msg["From"] = adminmail 
    947952                        if mailto in ("BOTH", "USER") :