I am porting an application from linux to windows. Changing the encoding from utf-8 to windows-1250 doesn't help event.keyval which reports the following message for Polish letters:
character_e = event.string UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb3 in position 0: invalid start byte
the event is for the character 'ł' etc which mingw64 interprets as utf-8 (?)