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
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
"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
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:
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