在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

相關文章
相關標籤/搜索