summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 8161a771..2892d687 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -789,7 +789,9 @@ void MainWindow::readyRead(bool finished = false) {
QString error = "";
if (currentAction != GPG_INTERNAL) {
error = process->readAllStandardError();
- output = process->readAllStandardOutput();
+ QByteArray processOutBytes = process->readAllStandardOutput();
+ QTextCodec *codec = QTextCodec::codecForLocale();
+ output = codec->toUnicode(processOutBytes);
if (finished && currentAction == GPG) {
lastDecrypt = output;
QStringList tokens = output.split("\n");