[Fix] Fix UnicodeDecodeError in md2yml.py (#1555)

This commit is contained in:
MengzhangLI 2022-05-11 23:41:22 +08:00 committed by GitHub
parent 090c91b7dc
commit 740b545770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ def parse_md(md_file):
# should be set with head or neck of this config file.
is_backbone = None
with open(md_file, 'r') as md:
with open(md_file, 'r', encoding='UTF-8') as md:
lines = md.readlines()
i = 0
current_dataset = ''