-
Notifications
You must be signed in to change notification settings - Fork 79
Description
My app that uses
PDCursesModis compiled with theUse Unicode Character Setoption with MSVC++, which will ensure allWin32API calls use the wide-character variants, all of which use UTF16 encoded characters and strings regardless of the user's selected locale.That means that when
_UNICODEis defined the character sent to theWM_CHARmessage is UTF16 encoded -- andPDCursesModadds it to key queue directly viaadd_key_to_queue((int) wParam);My app definesPDC_FORCE_UTF8, so I was assuming that internally this character would be converted to a sequence of UTF8 bytes to be received bygetch()calls.However, this was not the case, and parsing some non-ascii characters was problematic.
Originally posted by @clangen in #260 where @Bill-Gray presented a different (still unfinished) approach.