在Pydev中使用utf-8

打开Eclipse,spa

1. Windows->Preferences->General->Editors->Text Editors->Spelling->Encoding,设置为UTF-8ip

2. Windows->Preferences->General->Workspace->Text file encoding,设置为UTF-8utf-8

3. Windows->Preferences->Pydev->Editors->Templates,将全部Context为New Module的Pattern都加上一句it

# -*- coding: utf-8 -*-(注意,不是UTF-8,只能小写)cli

 

OK,如今新建一个Pydev Module试试 print u'你好,世界'。coding

相关文章
相关标签/搜索