I like Unicode more than I used to...
Martin v. Löwis
martin at v.loewis.de
Sun Mar 2 07:22:10 EST 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".
Regards,
Martin
More information about the Python-list
mailing list