Need debugging knowhow for my creeping Unicodephobia
John Nagle
nagle at animats.com
Sat Feb 13 00:16:51 EST 2010
kj wrote:
>>> =A0 x =3D '%s' % y
>>> =A0 x =3D '%s' % z
>>> =A0 print y
>>> =A0 print z
>>> =A0 print y, z
Bear in mind that most Python implementations assume the "console"
only handles ASCII. So "print" output is converted to ASCII, which
can fail. (Actually, all modern Windows and Linux systems support
Unicode consoles, but Python somehow doesn't get this.)
John Nagle
More information about the Python-list
mailing list