From 672b6337b4adc5dda6070210ab30895075f7cf21 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Mon, 5 Dec 2011 20:45:27 +0000 Subject: errors='ignore' when decode to unicode --- bindings/python/notmuch/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bindings/python/notmuch/message.py') diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index a9ded801..f95e50e2 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@ -427,7 +427,7 @@ class Message(object): header = Message._get_header(self._msg, header) if header == None: raise NotmuchError(STATUS.NULL_POINTER) - return header.decode('UTF-8') + return header.decode('UTF-8', errors='ignore') def get_filename(self): """Returns the file path of the message file -- cgit v1.2.3