Open file with UTF-8 encoding in add_file

This commit is contained in:
Rafael Moraes
2026-05-13 20:24:53 -03:00
parent dec4a22208
commit bc4cdd181c
+1 -1
View File
@@ -49,7 +49,7 @@ class CustomOutputWriter:
self.streams = streams
def add_file(self, path: str):
file_stream = open(path, "a")
file_stream = open(path, "a", encoding="utf-8")
atexit.register(file_stream.close)
self.streams.append(file_stream)