-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EncodingWarning when building #561
Comments
Thanks. Good call. I think that But event a PR with just the explicit encoding, and without any extra warning detection, is good enough. Happy to review a PR. |
jaraco
added a commit
to jaraco/towncrier
that referenced
this issue
Feb 10, 2024
jaraco
added a commit
to jaraco/towncrier
that referenced
this issue
Feb 10, 2024
jaraco
added a commit
to jaraco/towncrier
that referenced
this issue
Feb 10, 2024
jaraco
added a commit
to jaraco/towncrier
that referenced
this issue
Feb 10, 2024
adiroiban
added a commit
that referenced
this issue
Apr 28, 2024
* Add explicit encoding to read_text. Closes #561 * Add explicit encoding in towncrier.create. * Add note about UTF-8 encoding to tutorial. * Expand the note to mention the fragments, the news file, the config file, and templates. * Use 'utf-8' throughout for consistency. --------- Co-authored-by: Adi Roiban <adiroiban@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While building using towncrier with PYTHONWARNDEFAULTENCODING=1, I see this warning:
One needs to explicitly pass
encoding='utf-8'
to.read_text()
to avoid these warnings. See PEP 597 for details.The text was updated successfully, but these errors were encountered: