fix: use UTF-8 for text file operations

This commit is contained in:
Haoran
2026-08-24 20:28:37 +08:00
parent a32a73f700
commit 199402f9d4
59 changed files with 435 additions and 289 deletions

View File

@@ -24,7 +24,7 @@ def test_every_chapter_has_the_same_language_navigation() -> None:
for chapter in CHAPTERS:
for filename in ("README.md", "README.zh.md", "README.ja.md"):
lines = (chapter / filename).read_text().splitlines()
lines = (chapter / filename).read_text(encoding="utf-8").splitlines()
assert lines[2] == expected