Skip to content

Commit

Permalink
Fix encoding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Xzonn committed Feb 24, 2024
1 parent e4204d4 commit feb9b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/import_texts.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def import_texts() -> list[str]:
print(f"Text not found: {id}")
continue

new_text = list(text.replace("\n", "").replace("·", "・"))
new_text = list(text.replace("\n", "").replace("·", "・").replace("—", "ー"))
for i, char in enumerate(new_text):
if char not in chinese_to_cp932 and 0x4e00 <= ord(char) <= 0x9fff:
print(f"Unknown char: {id} {char}")
Expand Down

0 comments on commit feb9b1f

Please sign in to comment.