aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/olm/_compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/olm/_compat.py b/python/olm/_compat.py
index 29a80d4..2ceaa33 100644
--- a/python/olm/_compat.py
+++ b/python/olm/_compat.py
@@ -64,4 +64,4 @@ def to_unicode_str(byte_string, errors="replace"):
Returns the decoded native string.
"""
- return byte_string.decode(errors=errors)
+ return byte_string.decode(encoding="utf-8", errors=errors)