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
Post a Comment