[Tutor] encoding

Jose P maradix at sapo.pt
Tue Sep 12 02:49:06 CEST 2006


watch this example:

>>> a=['lula', 'cação']
>>> print a
['lula', 'ca\xc3\xa7\xc3\xa3o']
>>> print a[1]
cação


when i print the list the special characters are not printed correctly! 

But if i print only the list item that has the special charaters it runs
OK.

How do i get list print correctly?



More information about the Tutor mailing list