Pb subprocess

M

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() ?


Thanks for all anwers


Michel Claveau
 
M

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,163
Latest member
Sasha15427
Top