.. _bad-file-encoding: bad-file-encoding / C2503 ========================= **Message emitted:** ``PEP8 recommends UTF-8 as encoding for Python files`` **Description:** *PEP8 recommends UTF-8 default encoding for Python files. See https://peps.python.org/pep-0008/#source-file-encoding* **Problematic code:** .. literalinclude:: /data/messages/b/bad-file-encoding/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/b/bad-file-encoding/good.py :language: python Created by the `unicode_checker `__ checker.