"env" parameter to "popen" won't accept Unicode on Windows - minor Unicode bug
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Mon Jan 14 19:26:53 EST 2008
John Nagle wrote:
> It turns out that the strings in the "env" parameter have to be
> ASCII, not Unicode, even though Windows fully supports Unicode in
> CreateProcess.
Are you sure it supports Unicode, not UTF8 or UTF16? Probably using
something like u"thestring".encode("utf16") will help.
Regards,
Björn
--
BOFH excuse #31:
cellular telephone interference
More information about the Python-list
mailing list