[PyKDE] Umlauts in Qscintilla in UTF-8 mode

Phil Thompson phil at river-bank.demon.co.uk
Sun Dec 15 19:33:01 GMT 2002


On Sunday 15 December 2002 12:24 pm, Martin v. Löwis wrote:
> 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.

Do you see the same thing if you paste an accented character?

Phil




More information about the PyQt mailing list