# -*- coding: utf-8 -*- print "ÆØÅ"
When running the above script in Windows 7 with python 2.7.3 using cmd, powershell or cygwin, I get this output:
ÆØÅ
The file is a UTF-8 file and works fine in my text editor. How can I make it print "ÆØÅ"?
print u'ÆØÅ'work?LANG=en_US.UTF-8 python yourscript.py?from __future__ import unicode_literalsworks too. @ThomasOrozco I have no idea how to do that incmd.