diff options
Diffstat (limited to 'service/pixelated/adapter/mailstore/body_parser.py')
-rw-r--r-- | service/pixelated/adapter/mailstore/body_parser.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/service/pixelated/adapter/mailstore/body_parser.py b/service/pixelated/adapter/mailstore/body_parser.py index a6017833..7fb084af 100644 --- a/service/pixelated/adapter/mailstore/body_parser.py +++ b/service/pixelated/adapter/mailstore/body_parser.py @@ -40,8 +40,7 @@ class BodyParser(object): text = self._serialize_for_parser(charset) decoded_body = self._parse_and_decode(text) - - return unicode(decoded_body, encoding=charset) + return unicode(decoded_body, charset, errors='replace') def _parse_and_decode(self, text): parsed_body = Parser().parsestr(text) |