print u"\u0432": why is this so hard? UnciodeEncodeError
"Martin v. Löwis"
martin at v.loewis.de
Thu Apr 8 14:51:18 EDT 2004
David Eppstein wrote:
> Py2.3 sure doesn't discover the encoding of my terminal automatically:
>
> hyperbolic ~: python
> Python 2.3 (#1, Sep 13 2003, 00:49:11)
> [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Ah, Darwin. You lose.
If anybody can tell me how to programmatically discover the encoding
of Terminal.App, I'll happily incorporate a change into a 2.3.x release.
Regards,
Martin
More information about the Python-list
mailing list