I like Unicode more than I used to...

Martin v. Löwis martin at v.loewis.de
Sun Mar 2 13:22:10 CET 2003

Skip Montanaro <skip at pobox.com> writes:

> The only obvious way to announce the encoding would be by exporting
> an environment variable to the child program.

On Unix, the convention is that the terminal should follow the
locale's encoding; it is the user's responsibility to declare the
locale so that it matches the terminal.

On Win32, there is API to determine the input and output encoding of a
console window (yes, they can be different), provided you have a
"console handle".


More information about the Python-list mailing list