Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Along with other recent attempts to make these libraries actually usable on Windows (MSVC-related fixes, workarounds etc.), I'd like to have first-class UTF-8 support also on this platform (because it basically "just works" everywhere else). As you may already know, there is no such thing as using UTF-8 in WINAPI directly, you either use ANSI or UTF-16. Both are ugly and nasty, but UTF-16 is clearly the way to go (although there is very little support for it in standard C++).
Recommended reading (the rest of the issue relies on decisions from this manifesto): http://utf8everywhere.org/
So, the goal is to have all text in
As UTF-8/UTF-16 conversion would be needed only on Windows, I'll use WINAPI functions to do the conversion and won't make any public API for this, because it really shouldn't be needed anywhere else. I can't employ the (horrifically convoluted)
Looking at the bigger picture, because it's apparently impossible to portably use
Just found out about the need for proper
Current workaround is to build applications with the ugly console window popping up in the background (i.e. without
This was more painful than I thought (especially MinGW).