标签:
Eclipse的设置(Aptana Studio3与Eclipse基本完全相同,此处略)
window->preferences->general->editors->text editors->spelling->encoding->UTF-8
window->preferences->workspace->text file encoding->UTF-8
打开eclipse安装目录->eclipse.ini,末行加上"-Dfile.encoding=UTF-8"
文件编码
py文件记得保存成UTF-8,文件首行加上"#coding=utf-8"
run时设置
run-->run configurations->python run->Common->?Encoding?->Others->输入GBK->Run
Python和Ruby开发中源文件中文注释乱码的解决方法(Eclipse和Aptana Studio3均适用)
标签:
原文地址:http://www.cnblogs.com/lsgwr/p/5447717.html