This project showcases how to support UTF-8 in windows applications. By using UTF-8 everywhere, you guarantee your application will be portable accross platforms.
- Windows 1903 or greater
- Windows Terminal
- Windows SDK 10.0.18362.0 or greater
- Suitable Fonts
- In the main of your application configure the console to expect UTF-8
SetConsoleCP(CP_UTF8);
SetConsoleOutputCP(CP_UTF8);
- Link the provided manifest to enable UTF-8 as the active code page
- Compile your source files with the
/utf-8
option. Make sure your source files are utf8-encoded. - Use the ANSI system APIs (functions suffixed with
A
, likeCreateFileA
) with utf-8 encoded string parameters (confusing, isn't it)