[PyKDE] Problem with German characters

jblazi jblazi at gmx.de
Tue Oct 15 20:19:01 BST 2002


> Use unicode instead of str and it works ok.
>
> text = unicode(textedit.text())
>
> Detlev

Then I get the next problem. Here is my code:

string.split(unicode(self.widget.text.eingabe.text()),'\n')
    tmp = unicode(self.widget.text.eingabe.text())+'\n'

    try:
        exec tmp in user_name_space
    except:
        txt = str(sys.exc_info()[1])
        return

Here I get the error message

 ASCII encoding error: ordinal not in range(128) 

-- 
Janos Blazi




More information about the PyQt mailing list