Skip to content
Snippets Groups Projects
Commit 3d8fbd24 authored by Christian Mandery's avatar Christian Mandery
Browse files

Add fix for umlauts in ArmarX GUI (e.g., log viewer)

parent cf7eaa92
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -26,6 +26,7 @@
#include <QListWidget>
#include <QMessageBox>
#include <QTime>
#include <QTextCodec>
#include <iostream>
using namespace armarx;
......@@ -40,6 +41,8 @@ ArmarXGuiApp::ArmarXGuiApp(int& argc, char** argv) :
this->argv = 0;
qApplication = new ArmarXQApplication(argc, argv);
// Set text encoding to UTF-8 (otherwise, umlauts display wrongly in, e.g., the log viewer)
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
}
ArmarXGuiApp::~ArmarXGuiApp()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment