diff --git a/Htmldocs/release_notes.html b/Htmldocs/release_notes.html index 2f5f2895..0bac95ec 100644 --- a/Htmldocs/release_notes.html +++ b/Htmldocs/release_notes.html @@ -17,6 +17,7 @@
Changes and fixes in OSCAR v1.2.0 diff --git a/oscar/SleepLib/preferences.cpp b/oscar/SleepLib/preferences.cpp index 7efae835..a4e045aa 100644 --- a/oscar/SleepLib/preferences.cpp +++ b/oscar/SleepLib/preferences.cpp @@ -335,6 +335,9 @@ bool Preferences::Save(QString filename) QDomDocument doc(p_name); + QDomProcessingInstruction pi = doc.createProcessingInstruction("xml", "version=\"1.0\" encoding=\"UTF-8\""); + doc.appendChild(pi); + QDomElement droot = doc.createElement(STR_AppName); doc.appendChild(droot); @@ -368,6 +371,8 @@ bool Preferences::Save(QString filename) } QTextStream ts(&file); + ts.setCodec("UTF-8"); + ts.setGenerateByteOrderMark(true); ts << doc.toString(); file.close();