Skip to content

Commit

Permalink
Add explicit encoding in towncrier.create.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 10, 2024
1 parent 238563a commit d4ba19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/towncrier/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def __main(
ctx.exit(1)
content = edited_content

with open(segment_file, "w") as f:
with open(segment_file, "w", encoding="utf-8") as f:
f.write(content)

click.echo(f"Created news fragment at {segment_file}")
Expand Down

0 comments on commit d4ba19e

Please sign in to comment.