summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/voicefile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/voicefile.cpp')
-rw-r--r--rbutil/rbutilqt/base/voicefile.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/voicefile.cpp b/rbutil/rbutilqt/base/voicefile.cpp
index 814ac538e2..ec9ecbed33 100644
--- a/rbutil/rbutilqt/base/voicefile.cpp
+++ b/rbutil/rbutilqt/base/voicefile.cpp
@@ -217,7 +217,11 @@ void VoiceFileCreator::create(void)
//read in downloaded file
emit logItem(tr("Reading strings..."),LOGINFO);
QTextStream in(&genlang);
+#if QT_VERSION < 0x060000
in.setCodec("UTF-8");
+#else
+ in.setEncoding(QStringConverter::Utf8);
+#endif
QString id, voice;
bool idfound = false;
bool voicefound=false;