How to display utf-8 in windows console

前端 未结 4 600
予麋鹿
予麋鹿 2020-11-27 06:39

I\'m using Python 2.6 on Windows 7

I borrowed some code from here: Python, Unicode, and the Windows console

My goal is t

4条回答
  •  忘掉有多难
    2020-11-27 07:23

    Changing the console code page is both unnecessary and won't work (in particular, setting it to 65001 runs into a Python bug). See this question for details, and for how to print Unicode characters to the console regardless of the code page.

提交回复
热议问题