diff --git a/src/kauthhelpersupport.cpp b/src/kauthhelpersupport.cpp --- a/src/kauthhelpersupport.cpp +++ b/src/kauthhelpersupport.cpp @@ -43,6 +43,9 @@ #include #include +#ifdef Q_OS_UNIX +#include +#endif #include "BackendsManager.h" @@ -76,6 +79,11 @@ { #ifdef Q_OS_UNIX fixEnvironment(); + //As we don't inherit lang, the locale could be something that doesn't support UTF-8. Force it + auto utf8Codec = QTextCodec::codecForName("UTF-8"); + if (utf8Codec) { + QTextCodec::setCodecForLocale(utf8Codec); + } #endif #ifdef Q_OS_OSX