Fix Stream did not contain valid UTF-8 (#282) (#332)

This fix is for some characters that were wrongly formatted because of lacking UTF-8
This commit is contained in:
LumiaGG 2023-01-25 14:27:04 +08:00 committed by GitHub
parent 52aaf365c9
commit bfe9ad807e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -302,7 +302,7 @@ def write_page(path: str, code: str):
code: The code to write.
"""
utils.mkdir(os.path.dirname(path))
with open(path, "w") as f:
with open(path, "w", encoding="utf-8") as f:
f.write(code)