Qt6: utf8 for QTextStream is the default

Fixes #3953
This commit is contained in:
Alejandro Martinez
2024-01-12 11:28:30 -03:00
parent fbabe2aa36
commit cf71437d79
30 changed files with 96 additions and 0 deletions

View File

@@ -462,7 +462,9 @@ RideCache::writeAsCSV(QString filename)
};
file.resize(0);
QTextStream out(&file);
#if QT_VERSION < 0x060000
out.setCodec("UTF-8"); // Metric names can be translated
#endif
// write headings
out<<"date, time, filename";