Skip to content

Commit 4b0eda7

Browse files
authored
fix: add encoding="utf-8" in file_processing.py
1 parent e48f15a commit 4b0eda7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

generate_changelog/actions/file_processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __call__(self, input_text: StrOrCallable) -> StrOrCallable:
4747
"""Writes input_text to the pre-configured file."""
4848
filepath = Path(eval_if_callable(self.filename))
4949
text = eval_if_callable(input_text)
50-
filepath.write_text(text)
50+
filepath.write_text(text, encoding="utf-8")
5151
return input_text
5252

5353

@@ -90,5 +90,5 @@ def __call__(self, input_text: StrOrCallable) -> StrOrCallable:
9090
else:
9191
new_text = text
9292

93-
filename.write_text(new_text)
93+
filename.write_text(new_text, encoding="utf-8")
9494
return input_text

0 commit comments

Comments
 (0)