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

pull/311/head
Peter Johnson 2019-02-09 21:51:55 -08:00 committed by GitHub
parent 6ad1d2eb92
commit ee70b90853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)