Avoid UTF-8 BOM
This commit is contained in:
parent
f1c6a4ed94
commit
f1c7233763
1 changed files with 1 additions and 1 deletions
|
|
@ -604,7 +604,7 @@ def wrap_embedding_func_with_attrs(**kwargs):
|
||||||
def load_json(file_name):
|
def load_json(file_name):
|
||||||
if not os.path.exists(file_name):
|
if not os.path.exists(file_name):
|
||||||
return None
|
return None
|
||||||
with open(file_name, encoding="utf-8") as f:
|
with open(file_name, encoding="utf-8-sig") as f:
|
||||||
return json.load(f)
|
return json.load(f)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue