Skip to content

Commit

Permalink
fix: add encoding="utf-8" in file_processing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dornech authored Dec 21, 2024
1 parent e48f15a commit 4b0eda7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate_changelog/actions/file_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __call__(self, input_text: StrOrCallable) -> StrOrCallable:
"""Writes input_text to the pre-configured file."""
filepath = Path(eval_if_callable(self.filename))
text = eval_if_callable(input_text)
filepath.write_text(text)
filepath.write_text(text, encoding="utf-8")
return input_text


Expand Down Expand Up @@ -90,5 +90,5 @@ def __call__(self, input_text: StrOrCallable) -> StrOrCallable:
else:
new_text = text

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

0 comments on commit 4b0eda7

Please sign in to comment.