[issue19941] python -m imports non-ASCII .py file without encoding declaration
Eryk Sun
report at bugs.python.org
Tue Nov 30 18:55:23 EST 2021
Eryk Sun <eryksun at gmail.com> added the comment:
test.py is a UTF-8 file, which is the default source encoding in Python 3. It fails as expected if the test script is encoded differently, such as Latin-1, unless the source encoding is declared.
----------
nosy: +eryksun
resolution: -> out of date
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue19941>
_______________________________________
More information about the Python-bugs-list
mailing list