print u"\u0432": why is this so hard? UnciodeEncodeError

"Martin v. Löwis" martin at v.loewis.de
Sun Apr 11 18:28:25 EDT 2004


Michael Hudson wrote:
> The user can set it per-terminal, at runtime, with no notification to
> the running process that it has done so!

I would find it acceptable to say "don't do that, then", here. However,
changing the encoding should be visible to new programs running in the
terminal.

I wonder how much would break if Python would assume the terminal
encoding is UTF-8 on Darwin. Do people use different terminal
encodings?

Regards,
Martin




More information about the Python-list mailing list