Python encoding

Joan Pallarès joan.pallares at gmail.com
Tue Aug 19 14:33:25 EDT 2008


Sorry,

The problem is the OblecjtListView doesn't show some characters correctly.

In the image attached, in the "partidos list" in the grey line, where a
square is showed it must be a Ç
And in the second line where a | is showed it should be a ª

Why this happen? maybe OLV doesn`t manage well the encoding?

The list OLV uses to show info is forme by this class:

class Partido:
    def __init__(self,idPartido,nombreLocal,nombreVisitante,fechaHora,idLocal,idVisitante):
        self.idPartido = int(idPartido)
        self.nombreLocal = *unicode(nombreLocal, 'iso-8859-1')* #aún así no
muestra bien los caracteres
        self.nombreVisitante = *unicode(nombreVisitante, 'iso-8859-1')*
        self.fechaHora = fechaHora
        self.idLocal = int(idLocal)
        self.idVisitante = int(idVisitante)

Thank you, I expect now is clear
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080819/8c8712ec/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dibujo.JPG
Type: image/jpeg
Size: 23459 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20080819/8c8712ec/attachment-0001.jpe>


More information about the Python-list mailing list