diff options
-rw-r--r-- | lumina-open/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lumina-open/main.cpp b/lumina-open/main.cpp index 8334b882..5000c2ac 100644 --- a/lumina-open/main.cpp +++ b/lumina-open/main.cpp @@ -22,6 +22,7 @@ #include <QPixmap> #include <QColor> #include <QFont> +#include <QTextCodec> #include "LFileDialog.h" @@ -58,6 +59,9 @@ void setupApplication(int argc, char **argv){ translator.load( QString("lumina-open_") + langCode, PREFIX + "/share/Lumina-DE/i18n/" ); App->installTranslator( &translator ); qDebug() << "Locale:" << langCode; + //Load current encoding for this locale + QTextCodec::setCodecForTr( QTextCodec::codecForLocale() ); //make sure to use the same codec + qDebug() << "Locale Encoding:" << QTextCodec::codecForLocale()->name(); } void showOSD(int argc, char **argv, QString message){ |