python 3.0, how to make print() output unicode?

前端 未结 5 1669
猫巷女王i
猫巷女王i 2020-11-28 15:49

I\'m working in WinXP 5.1.2600, writing a Python application involving Chinese pinyin, which has involved me in endless Unicode problems. Switching to Python 3.0 has solved

5条回答
  •  粉色の甜心
    2020-11-28 16:28

    Check out the question and answer here, I think they have some valuable clues. Specifically, note the setdefaultencoding in the sys module, but also the fact that you probably shouldn't use it.

提交回复
热议问题