diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-20 11:42:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-20 11:42:18 +0300 |
commit | 864601c41faeec6dea78baf6c14f15c3ba164486 (patch) | |
tree | 21595d02a9ab7e849109a14988b90a4e0dd96239 /protocols/Telegram | |
parent | f45ed26f105ce9cccf19c54690695fb304ca7c57 (diff) |
Telegram: fix for Unicode file names
Diffstat (limited to 'protocols/Telegram')
-rw-r--r-- | protocols/Telegram/src/utils.cpp | 1 |
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;
|