Fix UnicodeDecodeError caused by trying to write a unicode character

This commit is contained in:
Nuclear03020704
2021-12-21 22:46:34 +07:00
parent c180dc1a8f
commit 565b6f88ce

View File

@@ -144,7 +144,7 @@ def main():
for write_line in write_list: for write_line in write_list:
lines.append(write_line) lines.append(write_line)
with open('../README.md', "w") as g: with open('../README.md', "w", encoding = 'utf-8') as g:
g.writelines(lines) g.writelines(lines)
print("New README.md table generated") print("New README.md table generated")