PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

PLEASE HELP. Non-UTF-8 code starting with '\xff'

Open zeqqa opened this issue 2 years ago • 2 comments

SyntaxError: Non-UTF-8 code starting with '\xff' in file C:\Users\zekio\desktop\python_temelleri\first_app.py on line 2, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for details

I tried a very simple print ("xxxx") code and when I tried to run I got this error, I can't figure it out, can you help me please

zeqqa avatar Aug 08 '22 09:08 zeqqa

fdsafasfadsda rqweqwrfas

zeqqa avatar Aug 08 '22 09:08 zeqqa

Hi, can you try going to File -> Save As -> Pick "Save with Encoding..." from the Save dropdown menu -> Pick UTF-8 and see if that issue still persists?

StellaHuang95 avatar Aug 08 '22 17:08 StellaHuang95

Going to close this out. If the issue still persists, please reopen with the information requested. Thanks.😊

StellaHuang95 avatar Sep 06 '22 19:09 StellaHuang95