Python unicode and Windows cmd.exe

Neil Hodgson nyamatongwe+thunder at gmail.com
Sun Mar 14 23:15:41 CET 2010


Guillermo:

> 2) My script gets output from a Popen call (to execute a Powershell
> script [new Windows shell language] from Python; it does make sense!).
> I suppose changing the Windows codepage for a single Popen call isn't
> straightforward/possible?

   You could try SetConsoleOutputCP and SetConsoleCP.

   Neil



More information about the Python-list mailing list