summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/ttssapi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/ttssapi.cpp')
-rw-r--r--rbutil/rbutilqt/base/ttssapi.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/ttssapi.cpp b/rbutil/rbutilqt/base/ttssapi.cpp
index 320ee1191a..d2d8cf801a 100644
--- a/rbutil/rbutilqt/base/ttssapi.cpp
+++ b/rbutil/rbutilqt/base/ttssapi.cpp
@@ -143,7 +143,11 @@ bool TTSSapi::start(QString *errStr)
}
voicestream = new QTextStream(voicescript);
+#if QT_VERSION < 0x060000
voicestream->setCodec("UTF16-LE");
+#else
+ voicestream->setEncoding(QStringConverter::Utf16LE);
+#endif
m_started = true;
return true;