# HG changeset patch # User Torsten # Date 1381687055 -7200 # Node ID 7ec70c575ad64c410f18544605edf64745afe3b8 # Parent 993ea21b7e03dcbb26f407d3789cb822c30ed5e1 * octave-gui.cc: set the encoding of qt strings to utf8 diff -r 993ea21b7e03 -r 7ec70c575ad6 libgui/src/octave-gui.cc --- a/libgui/src/octave-gui.cc Sat Oct 12 22:17:02 2013 -0700 +++ b/libgui/src/octave-gui.cc Sun Oct 13 19:57:35 2013 +0200 @@ -25,6 +25,7 @@ #endif #include +#include #include #include @@ -97,6 +98,9 @@ QApplication application (argc, argv); + // Set the codec for all strings + QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); + // install translators for the gui and qt text QTranslator gui_tr, qt_tr, qsci_tr; resource_manager::config_translators (&qt_tr,&qsci_tr,&gui_tr);