From de8c29b38a119ca83343f61cc71543fb9f3018ea Mon Sep 17 00:00:00 2001 From: xldistance <819873074@qq.com> Date: Mon, 13 May 2019 12:01:40 +0800 Subject: [PATCH] Update utility.py --- vnpy/trader/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/trader/utility.py b/vnpy/trader/utility.py index c25eaf73..d5b6168f 100644 --- a/vnpy/trader/utility.py +++ b/vnpy/trader/utility.py @@ -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: