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

Editing .py file in the Notepad:

SyntaxError: Non-ASCII character '\xe2' in file 编码错误_第1张图片

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格式编码”。保存,然后就可以了。

你可能感兴趣的:(character)