Help of Chinese Character displayed in the command prompt in the Spyder

875 views
Skip to first unread message

littlefairy

unread,
Dec 31, 2013, 2:56:16 PM12/31/13
to spyd...@googlegroups.com
Hi,

I am a beginner of python and just download the latest WinPython, which integrated the latest Spyder.

When I open the command prompt in the Spyder, the Chinese Characters are displayed as gibberish, however, the Chinese Characters are displayed normally in the system command prompt. My operating system is Windows 7 32 bit Simplified Chinese version.

Thanks a lot.

littlefairy

littlefairy

unread,
Jan 1, 2014, 12:04:23 PM1/1/14
to spyd...@googlegroups.com
Okay, I have solved this issue.
In the windows command line, I just type in "chcp", I know the default code page is 936, the gbk, an outdated standard of simplified Chinese character. and then I type in "chcp 65001, the code page is changed to 65001, the urf-8, which is preferable in python 3.x and elsewhere. If i type in chcp 437, I get American English code page. Furthermore, amazingly the alteration of the code page could be saved, so you don't have to set up each time.
In the command prompt opened in the Spyder, above-metioned approaches are feasible too. 
Here is the link of information of the code page:


Reply all
Reply to author
Forward
0 new messages