Gerhard Fiedler wrote: > Anyway, it seems that anything non-ASCII is a bit problematic and needs > "manual" handling of the runtime environment encoding. Seems a bit odd, > given the worldwide distribution of Python... I would have thought that > such a rather basic task like printing an accented character on a console > had been solved in a standard way, rather than relying on individual > (wheel-reinventing) custom coding. Isn't that something that pretty much > everybody (outside the USA, at least) needs?
umm. what are we talking about here, really ? $ python >>> import sys >>> sys.platform 'linux2' >>> sys.stdout.encoding 'UTF-8' >>> print unichr(233) é > python >>> import sys >>> sys.platform 'win32' >>> sys.stdout.encoding 'cp850' >>> print unichr(233) é </F>
-- http://mail.python.org/mailman/listinfo/python-list