mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
feat(tools): Enforce utf-8 encoding with open() function
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user