I have read the page listed below and tried a few things.
SyntaxError: Non-UTF-8 code starting with ‘\x89’ in file test1.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
can you provide some more information.
> ls -T test1.py
chtag -tvc UTF-8 test1.py
Python version 3.6.1
Not what the encoding of the file is. It is just a two line file I created with vi.
cat test1.py produces the following:
import os, sys
3/4. I tried the chtag command to set the tag.
I would recommend you to delete existing file, create the file again (touch test1.py), tag it (chtag -tc ISO8859-1 test1.py). After that add a content into the file and run it.
That worked !!!