windows - Print UTF-8 characters in cmd using python -


 # -*- coding: utf-8 -*- print "ÆØÅ" 

when running above script in windows 7 python 2.7.3 using cmd, powershell or cygwin, output:

ÆØÅ 

the file utf-8 file , works fine in text editor. how can make print "ÆØÅ"?

you can force unicode when printing:

print u'ÆØÅ' 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -