From ee70b9085327057b9d0decd469ccbdb38db48c5b Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 9 Feb 2019 21:51:55 -0800 Subject: [PATCH] Python example: Use UTF-8 encoding when opening frc.json (#101) --- deps/examples/python-multiCameraServer/multiCameraServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/examples/python-multiCameraServer/multiCameraServer.py b/deps/examples/python-multiCameraServer/multiCameraServer.py index 0184556..5818a65 100755 --- a/deps/examples/python-multiCameraServer/multiCameraServer.py +++ b/deps/examples/python-multiCameraServer/multiCameraServer.py @@ -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)