This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 Drekin
收信人 BreamoreBoy, David.Sankel, Drekin, akira, amaury.forgeotdarc, christian.heimes, christoph, davidsarah, ezio.melotti, flox, giampaolo.rodola, hippietrail, lemburg, mark, mhammond, ncoghlan, pitrou, santoso.wijaya, smerlin, ssbarnea, steve.dower, stijn, terry.reedy, tim.golden, tzot, v+python, wiz21
日期 2014-10-02.10:39:37
SpamBayes Score -1.0
Marked as misclassified
Message-id <1412246377.89.0.859246392308.issue1602@psf.upfronthosting.co.za>
In-reply-to
内容
stijn: You are mixing two issues here. One is reading text from a file. There is no problem with it. You just call open(path, encoding=the_encoding_of_the_file). Since the encoding of the file depends on the file, you should provide the information about it.

Another issue is interactively entering and displaying Unicode characters in Python REPL in Windows console. That's what is this issue about. The streams code you use is outdated, for recent version see https://pypi.python.org/pypi/win_unicode_console and https://github.com/Drekin/win-unicode-console. It's an installable package which tries to solve the issue. The readme also contains a summary of the issue. Try the package and let me know if there is any problem.
历史
日期 用户 动作 参数
2014-10-02 10:39:37Drekin修改recipients: + Drekin, lemburg, mhammond, terry.reedy, tzot, amaury.forgeotdarc, ncoghlan, pitrou, giampaolo.rodola, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, hippietrail, ssbarnea, flox, davidsarah, santoso.wijaya, akira, BreamoreBoy, David.Sankel, smerlin, steve.dower, wiz21, stijn
2014-10-02 10:39:37Drekin修改messageid: <1412246377.89.0.859246392308.issue1602@psf.upfronthosting.co.za>
2014-10-02 10:39:37Drekin链接issue1602 messages
2014-10-02 10:39:37Drekin创建