[PyKDE] Umlauts in Qscintilla in UTF-8 mode
Martin v. Löwis
martin at v.loewis.de
Sun Dec 15 13:25:01 GMT 2002
I'm operating QScintilla in UTF-8 mode like this:
import sys
from qt import *
from qtext import QextScintilla
a = QApplication(sys.argv)
s = QString(u"\u20acHello world!\u0416")
hello = QextScintilla()
hello.setText(s)
a.setMainWidget(hello)
hello.show()
a.exec_loop()
Displaying the string works fine, and so does most of typing.
However, when I type accented characters (äöü), instead of inserting
them, Scintilla performs seemingly random cursor movements. Can
anybody reproduce this? Is there a cure?
This is all on Linux, with qscintilla and PyQt 20021122.
Regards,
Martin
More information about the PyQt
mailing list