unicode issue

gentlestone tibor.beck at hotmail.com
Mon Oct 5 10:03:25 CEST 2009

Thx for useful advices. They seems to be very clever.

Thx to dajngo users comunity, I've got a nice solution, how to avoid
unicode problems in doctests:

    >>> Osoba(meno = "Ľudmila".decode('utf-8'), priezvisko =
    <Osoba: Šafářová Ľudmila>

It is - do not use unicode string at all. Instead of it create a
unicode object by explicitly decoding a bytestring using the proper

More information about the Python-list mailing list