change encoding to utf8
Change-Id: Id7c5a9685c9353209fe1111abfa88e35fe4fe068
diff --git a/src/main.cpp b/src/main.cpp
index bf2404e..9674146 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -9,6 +9,7 @@
*/
#include <QApplication>
+#include <QTextCodec>
// #include <QSystemTrayIcon>
#include "controller.hpp"
@@ -42,6 +43,9 @@
{
NewApp app(argc, argv);
+ QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
+ QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
+
chronochat::Controller controller;
app.setQuitOnLastWindowClosed(false);