Skip to content

Commit

Permalink
fix(misc.py): change the encoding to utf-8 in FileHandler()
Browse files Browse the repository at this point in the history
  • Loading branch information
Justaus3r committed Dec 16, 2023
1 parent 1d8afcd commit cf33e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ceg/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit cf33e95

Please sign in to comment.