fix unicode issue #3753
authorIndividual IT Services <info@individual-it.net>
Tue, 8 Sep 2015 08:14:43 +0000 (13:59 +0545)
committerDaniel Molkentin <danimo@owncloud.com>
Wed, 9 Sep 2015 23:24:11 +0000 (01:24 +0200)
fixes the unicode issue #3753

I don't know much CPP and Qt but after some google research I found this http://wiki.qt.io/Strings_and_encodings_in_Qt
it does mention trUtf8() that has done the trick for me on Linux with Gnome 3.16.
Haven't tested it on other systems

src/gui/folderstatusmodel.cpp

index 19f5b5a7c1bfde93cc8e5e5a75b1632067496377..9b9dbff1b85ae7c051f229514104c75f482b26ae 100644 (file)
@@ -791,7 +791,7 @@ void FolderStatusModel::slotSetProgress(const ProgressInfo &progress)
 #ifdef Q_OS_WIN
                 fileProgressString.append(tr("download %1/s").arg(Utility::octetsToString(estimatedDownBw)));
 #else
-                fileProgressString.append(tr("\u2193" " %1/s").arg(Utility::octetsToString(estimatedDownBw)));
+                fileProgressString.append(trUtf8("\u2193" " %1/s").arg(Utility::octetsToString(estimatedDownBw)));
 #endif
             }
             if (estimatedUpBw > 0) {
@@ -799,7 +799,7 @@ void FolderStatusModel::slotSetProgress(const ProgressInfo &progress)
  #ifdef Q_OS_WIN
                 fileProgressString.append(tr("upload %1/s").arg(Utility::octetsToString(estimatedUpBw)));
 #else
-                fileProgressString.append(tr("\u2191" " %1/s").arg(Utility::octetsToString(estimatedUpBw)));
+                fileProgressString.append(trUtf8("\u2191" " %1/s").arg(Utility::octetsToString(estimatedUpBw)));
 #endif
             }
         } else {