Skip to content

Commit 8eee160

Browse files
fix: add utf8 encoding for windows support
1 parent 438ca32 commit 8eee160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

botstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def write_config_env(self, config: dict[str, dict[str, Any]]) -> bool:
422422
if not self.env_file.exists():
423423
self.env_file.touch()
424424

425-
with self.env_file.open("r+") as file:
425+
with self.env_file.open("r+", encoding="utf-8") as file:
426426
before = file.read()
427427
file.seek(0)
428428
for num, (category, category_values) in enumerate(config.items()):

0 commit comments

Comments
 (0)