mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
bpo-24563: Link encoding names to encoding declarations (GH-32274)
This commit is contained in:
parent
ebbdbbff5d
commit
01be5d6446
1 changed files with 2 additions and 3 deletions
|
@ -101,12 +101,11 @@ addition, if the first bytes of the file are the UTF-8 byte-order mark
|
|||
(``b'\xef\xbb\xbf'``), the declared file encoding is UTF-8 (this is supported,
|
||||
among others, by Microsoft's :program:`notepad`).
|
||||
|
||||
If an encoding is declared, the encoding name must be recognized by Python. The
|
||||
If an encoding is declared, the encoding name must be recognized by Python
|
||||
(see :ref:`standard-encodings`). The
|
||||
encoding is used for all lexical analysis, including string literals, comments
|
||||
and identifiers.
|
||||
|
||||
.. XXX there should be a list of supported encodings.
|
||||
|
||||
|
||||
.. _explicit-joining:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue