-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
GH-133711: Enable UTF-8 mode by default (PEP 686) #133712
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
Changes from 1 commit
fc19177
c706cfa
f095ab0
ff066b1
abfb864
f40b986
3226e1d
b83c966
b56e01b
3da6bf2
9b3ebf7
6ecea69
e87ce6c
3130318
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,10 @@ New features | |
Other language changes | ||
====================== | ||
|
||
* Python UTF-8 mode is now enabled by default. | ||
It may be disabled with by setting :envvar:`PYTHONUTF8=0 <PYTHONUTF8>` as | ||
an environment variable or by using the :option:`-X utf8=0 <-X>` flag. | ||
See :pep:`686` for further details. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel like we can probably put some more explanation in here, such as that it affects TextIOWrapper and hence Along the lines of: "Python UTF-8 mode is now enabled by default. This means that (files/console/etc.) will now use UTF-8 regardless of system settings, unless specifically overridden in code (typically with an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be clear, it's nothing new. But we shouldn't assume that everyone already knows what UTF-8 mode implies. There are many more people out there who haven't ever thought about it than those who are waiting for it to be the default. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another effect of the UTF-8 Mode is that Python ignores the locale encoding. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've expanded the What's New entry, please see https://cpython-previews--133712.org.readthedocs.build/en/133712/whatsnew/3.15.html#other-language-changes |
||
|
||
|
||
New modules | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Implement :pep:`686`: Enable :ref:`Python UTF-8 Mode <utf8-mode>` by | ||
default. Patch by Adam Turner. |
Uh oh!
There was an error while loading. Please reload this page.