用eclipse写Python时总是提示报错可能的原因——设定编码

设置编码如下:

1.windows->preferences->General->Editors->Text Editors->SpellingEncoding改成Other:UTF-8,点击Apply。如下图

用eclipse写Python时总是提示报错可能的原因——设定编码


2.windows->preferences->General->Workspace,Text file encoding改成Other:UTF-8,然后点击Apply and Close。如下图:用eclipse写Python时总是提示报错可能的原因——设定编码