Re: os.popen encoding!

2009-02-19 Thread Gabriel Genellina
En Wed, 18 Feb 2009 22:38:45 -0200, SMALLp escribió: Thanks for help! My problem was actualy: a = ["velja\xe8a 2009"] print a#will print ["velja\xe8a 2009"] Print a[0]#will print veljaèa 2009 And why is that a problem? Almost the only reason to print a list is when debugging a p

Re: os.popen encoding!

2009-02-18 Thread SMALLp
Thanks for help! My problem was actualy: >>> a = ["velja\xe8a 2009"] >>> print a#will print ["velja\xe8a 2009"] >>> Print a[0]#will print veljaèa 2009 "Hrvoje Niksic" wrote in message news:87ocwzzvym@mulj.homelinux.net... > "Gabriel Genellina" writes: > >>> I'm playing with os.pope

Re: os.popen encoding!

2009-02-18 Thread Hrvoje Niksic
"Gabriel Genellina" writes: >> I'm playing with os.popen function. >> a = os.popen("somecmd").read() >> >> If one of the lines contains characters like "è", "æ"or any other it loks >> line this "velja\xe8a 2009" with that "\xe8". It prints fine if i go: >> >> for i in a: >> print i: > > '\xe8

Re: os.popen encoding!

2009-02-18 Thread Gabriel Genellina
En Wed, 18 Feb 2009 10:09:24 -0200, SMALLp escribió: Hy. I'm playing with os.popen function. a = os.popen("somecmd").read() If one of the lines contains characters like "è", "æ"or any other it loks line this "velja\xe8a 2009" with that "\xe8". It prints fine if i go: for i in a: print i:

os.popen encoding!

2009-02-18 Thread SMALLp
Hy. I'm playing with os.popen function. a = os.popen("somecmd").read() If one of the lines contains characters like "è", "æ"or any other it loks line this "velja\xe8a 2009" with that "\xe8". It prints fine if i go: for i in a: print i: How to solve this and where exectly is problem with pri