From ece31308b17d3699abc1ef70ad476e997239a0d4 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 18 Jul 2009 17:02:11 -0400 Subject: [PATCH] Assorted bugfixes to get reworked be-handle-mail working. --- interfaces/email/interactive/send_pgp_mime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2