summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/gui/changelog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/gui/changelog.cpp')
-rw-r--r--rbutil/rbutilqt/gui/changelog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/gui/changelog.cpp b/rbutil/rbutilqt/gui/changelog.cpp
index 54d6fa6f6c..79d601e412 100644
--- a/rbutil/rbutilqt/gui/changelog.cpp
+++ b/rbutil/rbutilqt/gui/changelog.cpp
@@ -45,7 +45,11 @@ QString Changelog::parseChangelogFile(QString filename)
QFile changelog(filename);
changelog.open(QIODevice::ReadOnly);
QTextStream c(&changelog);
+#if QT_VERSION < 0x060000
c.setCodec(QTextCodec::codecForName("UTF-8"));
+#else
+ c.setEncoding(QStringConverter::Utf8);
+#endif
QString text;
while(!c.atEnd()) {
QString line = c.readLine();