_compat: Make the encoding argument explicit in to_unicode_str().
This commit is contained in:
parent
7538a1eccf
commit
c4d703ac3d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue