A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-April/134209.html below:

[Python-Dev] subprocess.Popen and win32

[Python-Dev] subprocess.Popen and win32 [Python-Dev] subprocess.Popen and win32Antoine Pitrou solipsis at pitrou.net
Sun Apr 20 11:42:07 CEST 2014
On Sat, 19 Apr 2014 19:02:42 -0700
David Aguilar <davvid at gmail.com> wrote:
> 
> On python3, this still works for normal platforms, but on windows we
> can't pass a list of byte strings. We have to pass a list of unicode
> strings.

Windows native APIs are unicode-based. It is actually necessary to pass
*unicode* strings, not byte strings, if you want your code to be
correct in the face of non-ASCII characters.

Under other platforms, when unicode strings are passed, Python will
encode them using the platform's detected encoding. So, unless your
platform is somehow misconfigured, passing unicode strings will also
work correctly there.

(note this is under Python 3)

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4