Skip to content

Commit

Permalink
Macros for encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk committed May 31, 2024
1 parent bfc5b88 commit 6e8bfd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,11 @@ void Logger::setCurrentLogFile(QString filename)
}
instance->outFileStream.setDevice(&instance->outputFile);
#if defined(Q_OS_WIN)
// instance->outFileStream.setCodec("UTF-8"); // to properly print special characters in files
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
instance->outFileStream.setEncoding(QStringConverter::Utf8);
#else
instance->outFileStream.setCodec("UTF-8"); // to properly print special characters in files
#endif
#endif
instance->setCurrentStream(&instance->outFileStream);
}
Expand Down

0 comments on commit 6e8bfd4

Please sign in to comment.