print() with unicode strings

Thomas Guettler zopestoller at thomas-guettler.de
Thu Jun 27 07:51:56 EDT 2002


Hi!

 >>>print 'ü' #(German Umlaut)

works

but

 >>>print u'ü'

does not.

Is there a reason why print does not accept unicode?
Why not default to a latin-1 encoding?

Version:

Python 2.2 (#1, Dec 31 2001, 15:21:18)
[GCC 2.95.3-5 (cygwin special)] on cygwin

thomas




More information about the Python-list mailing list