How can I display native accents to languages in console in windows?

后端 未结 3 1259
别那么骄傲
别那么骄傲 2020-12-11 23:40
print \"Español\\nPortuguês\\nItaliano\".encode(\'utf-8\')

Errors:

Traceback (most recent call last): File \"\", line 1,

3条回答
  •  爱一瞬间的悲伤
    2020-12-12 00:06

    This works for me:

    # coding=utf-8
    print "Español\nPortuguês\nItaliano"
    

    You might want to try running it using chcp 65001 && your_program.py As well, try changing the command prompt font to Lucida Console.

提交回复
热议问题