Skip to content

Commit

Permalink
bpo-36778: Update cp65001 codec documentation (GH-13240)
Browse files Browse the repository at this point in the history
Remove cp65001 from the codecs table, list it as an alias of utf_8
and add a versionchanged markup.
  • Loading branch information
vstinner committed May 13, 2019
1 parent cf599f6 commit 3aef48e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Doc/library/codecs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1106,10 +1106,6 @@ particular, the following variants typically exist:
+-----------------+--------------------------------+--------------------------------+
| cp1258 | windows-1258 | Vietnamese |
+-----------------+--------------------------------+--------------------------------+
| cp65001 | | Alias to ``utf_8`` encoding |
| | | |
| | | .. versionadded:: 3.3 |
+-----------------+--------------------------------+--------------------------------+
| euc_jp | eucjp, ujis, u-jis | Japanese |
+-----------------+--------------------------------+--------------------------------+
| euc_jis_2004 | jisx0213, eucjis2004 | Japanese |
Expand Down Expand Up @@ -1234,7 +1230,7 @@ particular, the following variants typically exist:
+-----------------+--------------------------------+--------------------------------+
| utf_7 | U7, unicode-1-1-utf-7 | all languages |
+-----------------+--------------------------------+--------------------------------+
| utf_8 | U8, UTF, utf8 | all languages |
| utf_8 | U8, UTF, utf8, cp65001 | all languages |
+-----------------+--------------------------------+--------------------------------+
| utf_8_sig | | all languages |
+-----------------+--------------------------------+--------------------------------+
Expand All @@ -1245,6 +1241,9 @@ particular, the following variants typically exist:
The utf-32\* decoders no longer decode
byte sequences that correspond to surrogate code points.

.. versionchanged:: 3.8
``cp65001`` is now an alias to ``utf_8``.


Python Specific Encodings
-------------------------
Expand Down

0 comments on commit 3aef48e

Please sign in to comment.