print u"\u0432": why is this so hard? UnciodeEncodeError
David Eppstein
eppstein at ics.uci.edu
Mon Apr 12 23:11:21 EDT 2004
On 4/12/04 9:46 PM -0500 Skip Montanaro <skip at pobox.com> wrote:
> I just compared the output of "env" in both xterm and Terminal windows and
> came up with these clues:
>
> * TERM in an xterm is "xterm". In Terminal it's "vt100".
Well, but in my Terminals, TERM is xterm-color (so that I can get coloring
in emacs).
> * The xterm also defines DISPLAY for obvious reasons.
I can easily imagine doing this in a Terminal so that I can use X
command-line stuff without having to use xterm.
> * In Terminal a TERM_PROGRAM environment variable is defined with a
> value of "Apple_Terminal".
This one seems clear enough, though.
--
David Eppstein http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science
More information about the Python-list
mailing list