Tkinter-Designer icon indicating copy to clipboard operation
Tkinter-Designer copied to clipboard

python3 why SyntaxError: Non-UTF-8 code starting with '\xc7'

Open SaltNego opened this issue 3 years ago • 2 comments

C:\Python38\python3.exe D:/python/Tkinter-Designer/temp/figma1/build/gui.py File "D:/python/Tkinter-Designer/temp/figma1/build/gui.py", line 81 SyntaxError: Non-UTF-8 code starting with '\xc7' in file D:/python/Tkinter-Designer/temp/figma1/build/gui.py on line 81, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

进程已结束,退出代码 1

SaltNego avatar Mar 26 '22 02:03 SaltNego

转成utf8编码就行了

Z-fly avatar Apr 28 '22 14:04 Z-fly

I think this might be due to a special character like ' or ! or ~ or `

You can manually change this in gui.py and write the exact text that you want on line 81 if you want

deworben avatar Sep 15 '22 07:09 deworben