Update utility.py

This commit is contained in:
xldistance 2019-05-13 12:01:40 +08:00 committed by GitHub
parent b1a2f45484
commit de8c29b38a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ def load_json(filename: str):
filepath = get_file_path(filename)
if filepath.exists():
with open(filepath, mode='r') as f:
with open(filepath, mode='r',encoding = 'UTF-8') as f:
data = json.load(f)
return data
else: