Re: 如何获取Windows下CMD 命令框的编码?
"Jiahua Huang" <[email protected]>
| Newsgroups | gmane.comp.python.chinese |
|---|---|
| Message-ID | <[email protected]> |
能不能不要把能输入命令的都叫 DOS …… >>> import sys >>> sys.stdout.encoding 'UTF-8' >>> sys.stdin.encoding 'UTF-8' 另外, Windows 下用控制台程序似乎不太那啥, 给 Gtk 或 Qt 加个简单的 GUI 吧 2008/1/17 sunbaole <[email protected]>: > 处理邮件主题的程序需要在Windows下运行,由于适用多国语言,所以程序中的内 > 容以UTF-8编码处理,但是要在windows的DOS框中(程序- >运行->CMD)输出(编 > 码cp936)。 > 请问如何读取CMD命令框的编码。 > _______________________________________________ python-chinese Post: send [email protected] Subscribe: send subscribe to [email protected] Unsubscribe: send unsubscribe to [email protected] Detail Info: http://python.cn/mailman/listinfo/python-chinese