Python “SyntaxError: Non-ASCII character ‘\xe2’ in file” [duplicate]

If you are just trying to use UTF-8 characters or don’t care if they are in your code, add this line to the top of your .py file

# -*- coding: utf-8 -*-

Leave a Comment