Skip to content

Commit

Permalink
Switch response to decode from correct encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
pushfoo committed Jun 24, 2020
1 parent a293d9a commit 0e4198c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyc2e/interfaces/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def text(self) -> str:
# under cpython slicing a bytes to its original length doesn't
# seem to create a copy of it (ids are ==, a is b, etc), so this
# should be efficient enough when we don't modify length.
return self._data[:cutoff_length].decode("latin-1")
return self._data[:cutoff_length].decode("cp1252")

@property
def error(self) -> Union[bool, None]:
Expand Down

0 comments on commit 0e4198c

Please sign in to comment.