SIGN IN SIGN UP

[3.13] gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415) (#137461)

gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415)

Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
(cherry picked from commit ce1b747ff68754635b7b12870dfc527184ee3b39)

Co-authored-by: Victor Stinner <vstinner@python.org>
M
Miss Islington (bot) committed
f2d6931656ace7957ab3492901d93d40057ce24e
Parent: 9cfa4df
Committed by GitHub <noreply@github.com> on 8/6/2025, 12:59:11 PM