[python-win32] PythonWin non-ascii chars typing bug

Elias Fotinis efotinis at yahoo.com
Mon Jan 26 12:06:13 CET 2009


Starting from pywin 211, typing non-ascii chars in any Scintilla control in PythonWin is broken. These characters are truncated to the lower 8 bits of their Unicode values. The changelog of Scintilla 1.75 (the version used in 211 and 212) mentions some Unicode enhancements, which might be the reason for this.

There are two solutions that seem to work:
- Downgrade the Scintilla DLL to 1.74, or
- Use Scintilla 1.77 (the latest release, which introduced the SCI_SETKEYSUNICODE message) and add this to CScintillaView.OnInitialUpdate in pywin/scintilla/view.py:

    SCI_SETKEYSUNICODE = 2521
    self.SendScintilla(SCI_SETKEYSUNICODE, 1, 0)


      


More information about the python-win32 mailing list