feat(tools): Enforce utf-8 encoding with open() function

This commit is contained in:
Marek Fiala
2025-01-10 13:52:58 +08:00
committed by BOT
parent 73d1c139e7
commit b37383f75b
39 changed files with 113 additions and 125 deletions
@@ -68,7 +68,7 @@ server_key = '-----BEGIN PRIVATE KEY-----\n'\
def create_file(server_file: str, file_data: str) -> None:
with open(server_file, 'w+') as file:
with open(server_file, 'w+', encoding='utf-8') as file:
file.write(file_data)