`
cool010
  • 浏览: 4672 次
  • 性别: Icon_minigender_1
  • 来自: 大连
最近访客 更多访客>>
社区版块
存档分类
最新评论

如何在Idel中显示中日韩文

阅读更多
1.打开python安装目录\idellib\IOBinding.py文件
2.找到底35行 插入一行如下:
encoding = "ascii" # line 35
if sys.platform == 'win32':
# On Windows, we could use "mbcs". However, to give the user
# a portable encoding name, we need to find the code page
try:
encoding = locale.getdefaultlocale()[1]
codecs.lookup(encoding)
except LookupError:
pass
encoding = 'utf-8' ## <- this line force the encoding to utf-8.

3.保存文件,重新启动Idle就OK了.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics