summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-14 21:45:07 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-14 21:45:07 (GMT)
commit0b86f3b7936e38b23e4c02c6f59932f889bc985d (patch)
tree8b0f32dcc7a2a12377a99d1e602c83c7aff16e74 /Swift/QtUI/QtSwift.cpp
parentcb05f5a908e20006c954ce38755c2e422ecc2388 (diff)
downloadswift-contrib-0b86f3b7936e38b23e4c02c6f59932f889bc985d.zip
swift-contrib-0b86f3b7936e38b23e4c02c6f59932f889bc985d.tar.bz2
Set default codec for strings.
Diffstat (limited to 'Swift/QtUI/QtSwift.cpp')
-rw-r--r--Swift/QtUI/QtSwift.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/QtSwift.cpp b/Swift/QtUI/QtSwift.cpp
index d4c306f..bb40da8 100644
--- a/Swift/QtUI/QtSwift.cpp
+++ b/Swift/QtUI/QtSwift.cpp
@@ -8,6 +8,7 @@
#include <string>
#include <QSplitter>
+#include <QTextCodec>
#include <boost/bind.hpp>
#include "QtLoginWindow.h"
@@ -71,6 +72,8 @@ po::options_description QtSwift::getOptionsDescription() {
QtSwift::QtSwift(const po::variables_map& options) : networkFactories_(&clientMainThreadCaller_), autoUpdater_(NULL) {
+ QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
+
if (options.count("netbook-mode")) {
splitter_ = new QSplitter();
} else {