From 3efa80d546e46a4b3e340309090fd3660297aadb Mon Sep 17 00:00:00 2001 From: icanhasmath Date: Thu, 8 Aug 2024 23:43:06 -0500 Subject: [PATCH] bpo-36778: cp65001 encoding becomes an alias to utf_8 (GH-13230) --- Doc/library/codecs.rst | 2 ++ Lib/encodings/aliases.py | 1 + 2 files changed, 3 insertions(+) diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 4fd0951e304a74..e1ec268066892b 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -1006,6 +1006,8 @@ particular, the following variants typically exist: +-----------------+--------------------------------+--------------------------------+ | cp1258 | windows-1258 | Vietnamese | +-----------------+--------------------------------+--------------------------------+ +| cp65001 | | Alias to ``utf_8`` encoding | ++-----------------+--------------------------------+--------------------------------+ | euc_jp | eucjp, ujis, u-jis | Japanese | +-----------------+--------------------------------+--------------------------------+ | euc_jis_2004 | jisx0213, eucjis2004 | Japanese | diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py index a54cf774b7b1dd..c752683fcea256 100644 --- a/Lib/encodings/aliases.py +++ b/Lib/encodings/aliases.py @@ -516,6 +516,7 @@ 'utf8' : 'utf_8', 'utf8_ucs2' : 'utf_8', 'utf8_ucs4' : 'utf_8', + 'cp65001' : 'utf_8', # uu_codec codec 'uu' : 'uu_codec',