Inspectopedia
 
2024.3

File contains non-ASCII character

Warning
New
Last modified: 03 December 2024

Reports cases in Python 2 when a file contains non-ASCII characters and does not have an encoding declaration at the top.

Example:

In this example, the IDE reports a non-ASCII symbol in a comment and a lack of encoding declaration. Apply the proposed quick-fix to add a missing encoding declaration: