Am Dienstag, 15. Oktober 2002 19:37 schrieb jblazi: > I have a QTextEdit widget and read the text: > > text = str(texedit.text()) > > If the text contains an 'ö', that is o umlaut, I get the error message > > UnicodeError: ASCII encoding error: ordinal not in range(128) > > How can I solve this problem? > > TIA,
Use unicode instead of str and it works ok. text = unicode(textedit.text()) Detlev -- Detlev Offenbach [EMAIL PROTECTED] _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde