3 ms·
There is a new checkbox in the legacy control panel under Region / Administrative / Change system locale which says something like: "Beta: use UTF-8 to support
by captainmuon 9y ago
There is a new checkbox in the legacy control panel under Region / Administrative / Change system locale which says something like: "Beta: use UTF-8 to support global languages" (I have the German version so I'm not sure what the English label is.)
I really wonder what that does. This can't affect the Win32 wide API e.g. GetWindowTextW will still return wide characters (UTF-16 / sometimes UCS-2). Probably this sets the system codepage by default to 65001, so that if you request a string "in codepage format" it will return UTF-8.
- badsectoracula 9y agoI hope that this means that Microsoft finally made A functions (like GetWindowTextA) be able to work directly with UTF-8. If this is the case and it is possible for a process to say "give me UTF-8 regardless of global codepage settings" then this can help a lot with portability since every other C/C++ GUI uses UTF-8. It is kind of way too late, but better late than never i suppose.
- ygra 9y ago> every other C/C++ GUI uses UTF-8 Qt uses UTF-16, too, AFAIK.