os.system: string encoding

Martin v. Loewis martin at v.loewis.de
Sun Jun 27 16:00:52 EDT 2010


Am 25.06.2010 17:13, schrieb Peter Kleiweg:
> How do I set the string encoding for os.system to anything other then UTF-8?

You shouldn't have to set it, as it should use your locale's encoding.
In 3.1.2, it will.

For the moment, you can encode the string explicitly, and pass a byte
string.

Regards,
Martin



More information about the Python-list mailing list