fix: encoding bug

This commit is contained in:
zhayujie
2022-12-18 14:03:34 +08:00
parent 4ce6de07f5
commit 06065853a9
5 changed files with 15 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
# encoding:utf-8
import json
import os
from common.log import logger
@@ -25,7 +27,7 @@ def get_root():
def read_file(path):
with open(path, 'r') as f:
with open(path, mode='r', encoding='utf-8') as f:
return f.read()