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)


      
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to