Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Non-ASCII character '\xe5' in file Game23.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details #28

Closed
SDRStuff opened this issue Oct 11, 2020 · 2 comments

Comments

@SDRStuff
Copy link

When I try to open the.py file this error occurs
SyntaxError: Non-ASCII character '\xe5' in file Game23.py on line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Thanks!

@CharlesPikachu
Copy link
Owner

Are you using py2? If yes, try to add # -*- coding: UTF-8 -*- in the first line and see whether the error still exists.

@SDRStuff
Copy link
Author

Thanks! that worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants