Browse Source

Save log file in UTF-8 encoding

Otherwise it uses sytem defaults: usually UTF-8 on Linux and local 8-bit
encoding on Windows.
adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
12396a7582
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 1
      src/app/filelogger.cpp

1
src/app/filelogger.cpp

@ -115,6 +115,7 @@ void FileLogger::addLogMessage(const Log::Msg &msg)
if (!m_logFile.isOpen()) return; if (!m_logFile.isOpen()) return;
QTextStream stream(&m_logFile); QTextStream stream(&m_logFile);
stream.setCodec("UTF-8");
switch (msg.type) { switch (msg.type) {
case Log::INFO: case Log::INFO:

Loading…
Cancel
Save