Commit c4d703ac authored by poljar's avatar poljar

_compat: Make the encoding argument explicit in to_unicode_str().

parent 7538a1ec
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment