Another attempt to enable UTF-8 charset on Windows
This commit is contained in:
parent
95979b1ad9
commit
745b01a407
|
@ -57,6 +57,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include <functiondiscoverykeys.h>
|
||||
#include <intsafe.h>
|
||||
#include <guiddef.h>
|
||||
#include <locale.h>
|
||||
|
||||
#ifndef DCX_USESTYLE
|
||||
#define DCX_USESTYLE 0x00010000
|
||||
|
@ -367,6 +368,8 @@ void start() {
|
|||
} // namespace ThirdParty
|
||||
|
||||
void start() {
|
||||
// https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setlocale-wsetlocale#utf-8-support
|
||||
setlocale(LC_ALL, ".UTF8");
|
||||
}
|
||||
|
||||
void finish() {
|
||||
|
|
Loading…
Reference in New Issue