Re: Re[2]: unicode mystery/problem

2006-09-22 Thread John Machin
Petr Jakeš wrote: > John, thanks for your extensive answer. > >> Hi, > >> I am using Python 2.4.3 on Fedora Core4 and "Eric3" Python IDE > >> . > >> Below mentioned code works fine in the Eric3 environment. While trying > >> to start it from the command line, it returns: > >> > >> Traceback (most

Re: Re[2]: unicode mystery/problem

2006-09-22 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Petr Jakeš wrote: > I have try to experiment with the code a bit. > the simplest code where I can demonstrate my problems: > #!/usr/bin python > import sys > print "default", sys.getdefaultencoding() > print "stdout", sys.stdout.encoding > > a=['P\xc5\x99\xc3\xad','Petr

Re[2]: unicode mystery/problem

2006-09-22 Thread Petr Jakeš
John, thanks for your extensive answer. >> Hi, >> I am using Python 2.4.3 on Fedora Core4 and "Eric3" Python IDE >> . >> Below mentioned code works fine in the Eric3 environment. While trying >> to start it from the command line, it returns: >> >> Traceback (most recent call last): >> File "poku

Re: unicode mystery/problem

2006-09-20 Thread John Machin
Petr Jakes wrote: > Hi, > I am using Python 2.4.3 on Fedora Core4 and "Eric3" Python IDE > . > Below mentioned code works fine in the Eric3 environment. While trying > to start it from the command line, it returns: > > Traceback (most recent call last): > File "pokus_1.py", line 5, in ? > pr

unicode mystery/problem

2006-09-20 Thread Petr Jakes
Hi, I am using Python 2.4.3 on Fedora Core4 and "Eric3" Python IDE . Below mentioned code works fine in the Eric3 environment. While trying to start it from the command line, it returns: Traceback (most recent call last): File "pokus_1.py", line 5, in ? print str(a) UnicodeEncodeError: 'asc