From cf33e959def360e013d7d0d03edf8b582ecab965 Mon Sep 17 00:00:00 2001 From: Justaus3r Date: Sat, 16 Dec 2023 05:30:05 -0800 Subject: [PATCH] fix(misc.py): change the encoding to utf-8 in FileHandler() --- ceg/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceg/misc.py b/ceg/misc.py index 914bffa..bcbd422 100644 --- a/ceg/misc.py +++ b/ceg/misc.py @@ -147,7 +147,7 @@ def return_code(self, return_code) -> None: os.rmdir(self.__dir_name) def write(self, file_name: str, content: str) -> None: - with open(os.path.join(self.__dir_name, file_name), "w") as wr: + with open(os.path.join(self.__dir_name, file_name), "w", encoding="utf-8") as wr: wr.write(content)