In non-unicode Delphi (I've tried with D7 and D2006):
- Put a TRichEdit on the form and run the application
- Switch to some "exotic" keyboard layout (Russian, Greek, whatever)
- Type something
On XP, everything is good and I can see normal Russian letters. However, on Win7 characters are wrong (accented letters from other languages). If I copy Russian text from MS Word and paste it to RichEdit, it looks OK.
I suspect it is something related to RichEdit control version, but it there any way to overcome it? If possible, I would like to avoid switching to TTntRichEdit (which appears to work correctly), as I would need to change lots of existing code.
Try to use converions like
AnsiToUtf8
orAnsiToUnicode
, when user presses a key.