mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
feat(tools): Enforce utf-8 encoding with open() function
This commit is contained in:
@@ -67,7 +67,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