mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Save Zones files using UTF-8 for cross platform compatibility
Fixes #2978
This commit is contained in:
@@ -707,6 +707,7 @@ void HrZones::write(QDir home)
|
||||
if (file.open(QFile::WriteOnly))
|
||||
{
|
||||
QTextStream stream(&file);
|
||||
stream.setCodec("UTF-8");
|
||||
stream << strzones;
|
||||
file.close();
|
||||
} else {
|
||||
|
||||
@@ -820,6 +820,7 @@ void PaceZones::write(QDir home)
|
||||
QFile file(home.canonicalPath() + "/" + fileName_);
|
||||
if (file.open(QFile::WriteOnly)) {
|
||||
QTextStream stream(&file);
|
||||
stream.setCodec("UTF-8");
|
||||
stream << strzones;
|
||||
file.close();
|
||||
} else {
|
||||
|
||||
@@ -865,6 +865,7 @@ void Zones::write(QDir home)
|
||||
if (file.open(QFile::WriteOnly)) {
|
||||
|
||||
QTextStream stream(&file);
|
||||
stream.setCodec("UTF-8");
|
||||
stream << strzones;
|
||||
file.close();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user