diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-18 17:02:11 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-18 17:02:11 -0400 |
commit | 2fffcfc2df9369ce1a4b60225e441a81afd55cb5 (patch) | |
tree | a14828a323323c224aa2f5b08f1d77b3985f897f /interfaces/email/interactive/send_pgp_mime.py | |
parent | 9b67dfc5c49df7663c97d5b992ae967359cbcea1 (diff) | |
download | bugseverywhere-2fffcfc2df9369ce1a4b60225e441a81afd55cb5.tar.gz |
Assorted bugfixes to get reworked be-handle-mail working.
Diffstat (limited to 'interfaces/email/interactive/send_pgp_mime.py')
-rw-r--r-- | interfaces/email/interactive/send_pgp_mime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interfaces/email/interactive/send_pgp_mime.py b/interfaces/email/interactive/send_pgp_mime.py index 3a60013..babd720 100644 --- a/interfaces/email/interactive/send_pgp_mime.py +++ b/interfaces/email/interactive/send_pgp_mime.py @@ -212,7 +212,7 @@ def flatten(msg, to_unicode=False): g.flatten(msg) text = fp.getvalue() if to_unicode == True: - encoding = msg.get_content_charset() + encoding = msg.get_content_charset() or "utf-8" text = unicode(text, encoding=encoding) return text |