By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,035 Members | 1,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,035 IT Pros & Developers. It's quick & easy.

Pb subprocess

P: n/a
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

Nov 17 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Nov 18 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.