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
|
# parse file
|
||||||
try:
|
try:
|
||||||
with open(configFile, "rt") as f:
|
with open(configFile, "rt", encoding="utf-8") as f:
|
||||||
j = json.load(f)
|
j = json.load(f)
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
print("could not open '{}': {}".format(configFile, err), file=sys.stderr)
|
print("could not open '{}': {}".format(configFile, err), file=sys.stderr)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user