[PyKDE] Problem with German characters

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


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,
-- 
Janos Blazi




More information about the PyQt mailing list