Hello All, I have read the page listed below and tried a few things. Any ideas?
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
Hi Kent, 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 print (‘HELLO’) 3/4. I tried the chtag command to set the tag.
Yes. _BPXK_AUTOCVT=ON
Hi Kent,
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.
Thanks, Tatyana
Tatyana,
That worked !!!
Thanks,
Kent