Print an arabic unicode string in Python(x,y) [duplicate]

蓝咒 提交于 2019-12-02 08:10:19

Your console is configured to display codepage 1252 (Latin 1), which indeed cannot handle your codepoints. Switch your console to a different codepage that can display the characters.

You could switch to 1256:

chcp 1256

or switch to 65001 (the UTF-8 codepage), which should be able to handle any unicode codepoint. You may have to switch the font used for your console though; Lucida Sans is reported to display most of Unicode.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!