Skip to content
Prev Previous commit
Next Next commit
Update the documentation.
  • Loading branch information
serhiy-storchaka committed Sep 7, 2024
commit ebf8ed154658c1fcd954c37782ed7e37147dfc46
7 changes: 7 additions & 0 deletions Doc/library/codecs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,10 @@ is meant to be exhaustive. Notice that spelling alternatives that only differ in
case or use a hyphen instead of an underscore are also valid aliases; therefore,
e.g. ``'utf-8'`` is a valid alias for the ``'utf_8'`` codec.

On Windows, ``cpXXX`` codecs are available for all code pages.
But only codecs listed in the following table are guarantead to exist on
other platforms.

.. impl-detail::

Some common encodings can bypass the codecs lookup machinery to
Expand Down Expand Up @@ -1307,6 +1311,9 @@ particular, the following variants typically exist:
.. versionchanged:: 3.8
``cp65001`` is now an alias to ``utf_8``.

.. versionchanged:: 3.14
On Windows, ``cpXXX`` codecs are now available for all code pages.


Python Specific Encodings
-------------------------
Expand Down
2 changes: 2 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ Other Language Changes
They raise an error if the argument is a string.
(Contributed by Serhiy Storchaka in :gh:`84978`.)

* All Windows code pages are now supported as "cpXXX" codecs on Windows.
(Contributed by Serhiy Storchaka in :gh:`123803`.)

New Modules
===========
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
All Windows code pages are now supported as "cpXXX" codecs on Windows.