mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Fix UnicodeDecodeError caused by trying to write a unicode character
This commit is contained in:
@@ -144,7 +144,7 @@ def main():
|
||||
for write_line in write_list:
|
||||
lines.append(write_line)
|
||||
|
||||
with open('../README.md', "w") as g:
|
||||
with open('../README.md', "w", encoding = 'utf-8') as g:
|
||||
g.writelines(lines)
|
||||
|
||||
print("New README.md table generated")
|
||||
|
||||
Reference in New Issue
Block a user