Skip to content

Commit

Permalink
WIndows: use ISO-8859-1 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisroovers committed Dec 15, 2022
1 parent f3d3e3a commit 9c0f623
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qa/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def getpreferredencoding():
# (on Linux/MacOS the `getpreferredencoding()` call will take care of this).
# We fallback to UTF-8
if PLATFORM_IS_WINDOWS:
return "ISO-8859-1"
default_encoding = "UTF-8"
for env_var in ["LC_ALL", "LC_CTYPE", "LANG"]:
encoding = os.environ.get(env_var, False)
Expand Down

0 comments on commit 9c0f623

Please sign in to comment.