How Do I Fix This Encoding Error In The Python Binary In My Pygame Project?
I'm trying to setup a project in PyCharm, but I get an error when I try to execute it. SyntaxError: Non-ASCII character '\xca' in file /Users/raddevon/PycharmProjects/pygame/env-py
Solution 1:
Perhaps try adding the following:
# -*- coding: utf-8 -*-
at the top of your sourcefiles?
As the error message suggests you may want to visit PEP 0263 and then declare the encoding as I proposed above.
Post a Comment for "How Do I Fix This Encoding Error In The Python Binary In My Pygame Project?"