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 = "Šafářová".decode('utf-8')) <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 codec. -- http://mail.python.org/mailman/listinfo/python-list