Re: Pb subprocess

2006-11-17 Thread M�ta-MCI
Solved. Thank to Amaury. Solution : change (in register), Command Processor, for to force using of "CMD /U/C" Then, STDOUT is in utf-16 (but win-console stay in cp850) HGD Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Pb subprocess

2006-11-17 Thread M�ta-MCI
Hi! This code : p=subprocess.Popen(chaine, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) data=p.stdout.read() Run OK, except when stdout.read() give unicode data, with char>255 (this give many "?") How read real unicode data in stdout.read() ? T