Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, Lad wrote: > > > The text is from Mysql table field that uses utf8_czech_ci collation, > > but when I try > > `RealName`.decode('utf8'),where RealName is that field of MySQL > > > > I will get: > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: > > ordinal > > not in range(128) > > > > Can you please suggest the solution? > > Do you get this from converting the value from the database or from trying > to print the unicode string? Can you give us the output of > > print repr(RealName) > > Ciao, Marc 'BlackJack' Rintsch
for print repr(RealName) command I will get P?ibylov\xe1 Ludmila where instead of ? should be also a character Thank you for help L. -- http://mail.python.org/mailman/listinfo/python-list