Hi,

I don't understand Python's behaviour when printing a list.
The following example uses 2 German non-ascii characters.

#!/usr/bin/python
# _*_ coding: latin1 _*_
L=["abc","süß","def"]
print L[1],L

The output of L[1] is correct, while the output of L shows up as
 ['abc', 's\xfc\xdf', 'def']

How can this be changed?

Thanks for hint,
Helmut.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to