mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 19:26:59 +03:00
Save log file in UTF-8 encoding
Otherwise it uses sytem defaults: usually UTF-8 on Linux and local 8-bit encoding on Windows.
This commit is contained in:
parent
d179c6d5a1
commit
12396a7582
1 changed files with 1 additions and 0 deletions
|
@ -115,6 +115,7 @@ void FileLogger::addLogMessage(const Log::Msg &msg)
|
|||
if (!m_logFile.isOpen()) return;
|
||||
|
||||
QTextStream stream(&m_logFile);
|
||||
stream.setCodec("UTF-8");
|
||||
|
||||
switch (msg.type) {
|
||||
case Log::INFO:
|
||||
|
|
Loading…
Reference in a new issue