From fb9e846714f04e3f12a3b33bc78ca6f3ffd1c197 Mon Sep 17 00:00:00 2001 From: Sunay Konnur Date: Thu, 26 Sep 2024 19:01:37 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Error=20Reading=20project.?= =?UTF-8?q?pros=20File=20with=20Certain=20Chinese=20Characters=20on=20Wind?= =?UTF-8?q?ows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pros/config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pros/config/config.py b/pros/config/config.py index 984b668a..c7250620 100644 --- a/pros/config/config.py +++ b/pros/config/config.py @@ -25,7 +25,7 @@ def __init__(self, file, error_on_decode=False): if file: # If the file already exists, update this new config with the values in the file if os.path.isfile(file): - with open(file, 'r') as f: + with open(file, 'r', encoding ='utf-8') as f: try: result = jsonpickle.decode(f.read()) if isinstance(result, dict):