Run Notepad2e in debug mode and insert UTF-8 chars such as "абцдеф". You will get assertions (at least with MSVCR 141). This indicates a problem.