Python example: Use UTF-8 encoding when opening frc.json (#101)
This commit is contained in:
parent
6ad1d2eb92
commit
ee70b90853
|
@ -91,7 +91,7 @@ def readConfig():
|
|||
|
||||
# parse file
|
||||
try:
|
||||
with open(configFile, "rt") as f:
|
||||
with open(configFile, "rt", encoding="utf-8") as f:
|
||||
j = json.load(f)
|
||||
except OSError as err:
|
||||
print("could not open '{}': {}".format(configFile, err), file=sys.stderr)
|
||||
|
|
Loading…
Reference in New Issue
Block a user