summaryrefslogtreecommitdiff
path: root/protocols/Telegram
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-20 11:42:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-20 11:42:18 +0300
commit864601c41faeec6dea78baf6c14f15c3ba164486 (patch)
tree21595d02a9ab7e849109a14988b90a4e0dd96239 /protocols/Telegram
parentf45ed26f105ce9cccf19c54690695fb304ca7c57 (diff)
Telegram: fix for Unicode file names
Diffstat (limited to 'protocols/Telegram')
-rw-r--r--protocols/Telegram/src/utils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp
index 0884188c16..ef2636563f 100644
--- a/protocols/Telegram/src/utils.cpp
+++ b/protocols/Telegram/src/utils.cpp
@@ -248,6 +248,7 @@ CMStringA CTelegramProto::GetMessageText(TG_USER *pUser, TD::MessageContent *pBo
auto *pszFileName = pDoc->document_->file_name_.c_str();
PROTORECVFILE pre = {};
+ pre.dwFlags = PRFF_UTF;
pre.fileCount = 1;
pre.timestamp = time(0);
pre.files.a = &pszFileName;