Python unicode and Windows cmd.exe

Guillermo guillermo.listas at googlemail.com
Sun Mar 14 18:21:11 EDT 2010


> 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?

Nevermind. I'm able to change Windows' codepage to 65001 from within
the Powershell script and I get back a string encoded in UTF-8 with
BOM, so problem solved!

Thanks for the help,
Guillermo



More information about the Python-list mailing list