aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 745485e..483173c 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -1278,7 +1278,7 @@ class LoreMessage:
if hcs is None:
hcs = 'utf-8'
try:
- decoded += hstr.decode(hcs)
+ decoded += hstr.decode(hcs, errors='replace')
except LookupError:
# Try as utf-u
decoded += hstr.decode('utf-8', errors='replace')