Skip to content
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

PEP 686: Update Post-History #2489

Merged
merged 1 commit into from
Mar 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions pep-0686.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Type: Standards Track
Content-Type: text/x-rst
Created: 18-Mar-2022
Python-Version: 3.13
Post-History: `18-Mar-2022 <https://discuss.python.org/t/14435>`__
Post-History: `18-Mar-2022 <https://discuss.python.org/t/14435>`__,
`31-Mar-2022 <https://discuss.python.org/t/14737>`__


Abstract
Expand Down Expand Up @@ -104,10 +105,10 @@ This is the guideline to fix this backward compatibility issue:
2. Use ``EncodingWarning`` (:pep:`597`) to find every places UTF-8 mode
affects.

* If ``encoding`` option is omitted, consider using ``encoding="utf-8"``
or ``encoding="locale"``.
* If ``locale.getpreferredencoding()`` is used, consider using
``"utf-8"`` or ``locale.getencoding()``.
* If ``encoding`` option is omitted, consider using ``encoding="utf-8"``
or ``encoding="locale"``.
* If ``locale.getpreferredencoding()`` is used, consider using
``"utf-8"`` or ``locale.getencoding()``.

3. Test the application with UTF-8 mode.

Expand Down