From 745b01a40777381c412a0587aa3f099105a6e9a0 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 18 Jan 2023 14:35:03 +0400 Subject: [PATCH] Another attempt to enable UTF-8 charset on Windows --- Telegram/SourceFiles/platform/win/specific_win.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/platform/win/specific_win.cpp b/Telegram/SourceFiles/platform/win/specific_win.cpp index 293573e3c..0892b67a0 100644 --- a/Telegram/SourceFiles/platform/win/specific_win.cpp +++ b/Telegram/SourceFiles/platform/win/specific_win.cpp @@ -57,6 +57,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include #include #include +#include #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() {