PEP 686: Update Post-History (#2489)
This commit is contained in:
parent
dae03bb7ec
commit
d0a55d763b
11
pep-0686.rst
11
pep-0686.rst
|
@ -7,7 +7,8 @@ Type: Standards Track
|
||||||
Content-Type: text/x-rst
|
Content-Type: text/x-rst
|
||||||
Created: 18-Mar-2022
|
Created: 18-Mar-2022
|
||||||
Python-Version: 3.13
|
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
|
Abstract
|
||||||
|
@ -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
|
2. Use ``EncodingWarning`` (:pep:`597`) to find every places UTF-8 mode
|
||||||
affects.
|
affects.
|
||||||
|
|
||||||
* If ``encoding`` option is omitted, consider using ``encoding="utf-8"``
|
* If ``encoding`` option is omitted, consider using ``encoding="utf-8"``
|
||||||
or ``encoding="locale"``.
|
or ``encoding="locale"``.
|
||||||
* If ``locale.getpreferredencoding()`` is used, consider using
|
* If ``locale.getpreferredencoding()`` is used, consider using
|
||||||
``"utf-8"`` or ``locale.getencoding()``.
|
``"utf-8"`` or ``locale.getencoding()``.
|
||||||
|
|
||||||
3. Test the application with UTF-8 mode.
|
3. Test the application with UTF-8 mode.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue