SyntaxError: Non-ASCII character 'xe2' in file 编码错误

Editing .py file in the Notepad:

tmp9D84

But when run in the PowerShell, I found the follwing error:

tmp7030

It seems I coded with the UTF-8 but ascii is required. So what I did it to go to

“格式”选择 “以ANSI格式编码”。保存,然后就可以了。

原文地址:https://www.cnblogs.com/datascientist/p/3473959.html