mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.14] gh-42237: Link to complete list of codec aliases (GH-136625) (#136626)
gh-42237: Link to complete list of codec aliases (GH-136625)
Closes GH-42237
(cherry picked from commit a93d9aaf62)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
parent
9ee72ab266
commit
ed1e0cdc58
1 changed files with 9 additions and 2 deletions
|
|
@ -1065,8 +1065,15 @@ or with dictionaries as mapping tables. The following table lists the codecs by
|
|||
name, together with a few common aliases, and the languages for which the
|
||||
encoding is likely used. Neither the list of aliases nor the list of languages
|
||||
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.
|
||||
case or use a hyphen instead of an underscore are also valid aliases
|
||||
because they are equivalent when normalized by
|
||||
:func:`~encodings.normalize_encoding`. For example, ``'utf-8'`` is a valid
|
||||
alias for the ``'utf_8'`` codec.
|
||||
|
||||
.. note::
|
||||
|
||||
The below table lists the most common aliases, for a complete list
|
||||
refer to the source :source:`aliases.py <Lib/encodings/aliases.py>` file.
|
||||
|
||||
On Windows, ``cpXXX`` codecs are available for all code pages.
|
||||
But only codecs listed in the following table are guarantead to exist on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue