Mercurial > p > roundup > code
diff roundup/rfc2822.py @ 2034:be047db3dd3d
Eudora can't handle utf-8 headers. We love Eudora. [SF#900046]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 23 Feb 2004 05:29:06 +0000 |
| parents | fc52d57c6c3e |
| children | 443fce9e92ae |
line wrap: on
line diff
--- a/roundup/rfc2822.py Sun Feb 22 22:13:49 2004 +0000 +++ b/roundup/rfc2822.py Mon Feb 23 05:29:06 2004 +0000 @@ -119,7 +119,7 @@ outs += unicode(section[0], charset or 'iso-8859-1', 'replace') return outs.encode('utf-8') -def encode_header(header): +def encode_header(header, charset='utf-8'): """ Will encode in quoted-printable encoding only if header contains non latin characters """ @@ -132,7 +132,6 @@ if hqre.match(header): return header - charset = 'utf-8' quoted = '' #max_encoded = 76 - len(charset) - 7 for c in header:
