Re: Setting default output encoding

2007-08-05 Thread Martin v. Löwis
> python = subprocess.Popen(["python", "myscript.py"], > stdout=subprocess.PIPE, stderr=subprocess.PIPE) > > However, this child script has sys.stdout.encoding set to None, > which means that Unicode strings cannot be printed without trouble. The automatic settin

Setting default output encoding

2007-08-05 Thread Torsten Bronger
Hallöchen! I start a python script with subprocess from another Python script with python = subprocess.Popen(["python", "myscript.py"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) However, this child script has sys.stdout.encoding set to None, which means th