Python example: Use UTF-8 encoding when opening frc.json (#101)

This commit is contained in:
Peter Johnson
2019-02-09 21:51:55 -08:00
committed by GitHub
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)