SyntaxError: Non-ASCII character '\xe2' in file tootbot.py on line 99
Closed this issue · 2 comments
MyNameIsTroll commented
Hello,
I'm trying to use the script but I have a small encoding problem apparently:
File "tootbot.py", line 99
SyntaxError: Non-ASCII character '\xe2' in file tootbot.py on line 99, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
I tried to put this in the document header but it doesn't change anything, I still have the same error message.
#!/usr/bin/python3
# -*- coding: utf8 -*-
MyNameIsTroll commented
I was wrong, i executed the script in python2.7, with python3 it works perfectly.
Thank you very much, problem solved ;)
cquest commented
You got it, this script is written for python 3.x