summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-08-27 21:52:50 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-08-27 21:52:50 +0100
commit4ea9ef9dab9202149e851ef1bfff2b3cb29a34d2 (patch)
tree5e34943fbe3aafc81db953f74941788a3bc1acee /alot
parent6653de8462338b122e75b636f4de8abf5e2fde65 (diff)
hotfix issue #38
Diffstat (limited to 'alot')
-rw-r--r--alot/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/message.py b/alot/message.py
index f4cc2f39..f3128eba 100644
--- a/alot/message.py
+++ b/alot/message.py
@@ -184,7 +184,7 @@ def extract_body(mail):
raw_payload = part.get_payload(decode=True)
if part.get_content_maintype() == 'text':
if enc:
- raw_payload = unicode(raw_payload, enc)
+ raw_payload = unicode(raw_payload, enc, errors='replace')
else:
raw_payload = unicode(raw_payload, errors='replace')
if ctype == 'text/plain':