On 10/15/2010 4:57 AM, hiral wrote:
Hi,
I tried...

<code>
# coding: latin-1
print "**********************************************************"
oo = "ö"
print "char=<%s>" % oo
print "**********************************************************"
</code>

but it is not printing "ö" char; any idea?

Thank you.
-Hiral

   Unicode output to Windows consoles has been broken since
2007.  See

   http://bugs.python.org/issue1602

   Surprisingly, it actually worked with Python 2.5 and
Windows 2000, if you changed the Windows console encoding
to "chcp 65001". If you try that with Python 2.6 and
Windows 7, you get "LookupError: unknown encoding: cp65001",
because "cp65001" isn't in Python's encoding tables.

                                John Nagle
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to