Message180157
I've found a workaround by specifying the enviroment variable:
my_env = os.environ
my_env['PYTHONIOENCODING'] = 'utf-8'
p = subprocess.Popen(shlex.split(command), stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, env=my_env)
I've attached an example script for testing. It calls itself recursively 10 times.
Pleased note the 'fix' variable. |
|
Date |
User |
Action |
Args |
2013-01-17 22:14:24 | berwin22 | set | recipients:
+ berwin22, amaury.forgeotdarc, ncoghlan, pitrou, vstinner, mark, eric.araujo, segfaulthunter, Arfrever, r.david.murray, srid, mightyiam, chris.jerdonek |
2013-01-17 22:14:24 | berwin22 | set | messageid: <1358460864.25.0.280510380883.issue6135@psf.upfronthosting.co.za> |
2013-01-17 22:14:24 | berwin22 | link | issue6135 messages |
2013-01-17 22:14:24 | berwin22 | create | |
|