---
title: "如何在Idel中显示中日韩文"
author: "cool010"
date: "2013-08-17T18:32:33Z"
tags: []
categories: ["编程语言"]
slug: "idel"
draft: false
lastmod: "2013-08-17T18:32:08Z"
id: 1926516
url: "https://cool010.iteye.com/blog/1926516"
---

1.打开python安装目录\idellib\IOBinding.py文件
2.找到底35行 插入一行如下:

```python
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了.