assume frontend buffer utf-8 to avoid garbage strings in debug
authornemo
Tue, 22 Dec 2015 11:18:40 -0500
changeset 11466 5dbc0f976b4a
parent 11419 6f119783a1ad
child 11468 fe46826de291
assume frontend buffer utf-8 to avoid garbage strings in debug
QTfrontend/net/newnetclient.cpp
--- a/QTfrontend/net/newnetclient.cpp	Thu Nov 19 13:30:34 2015 +0300
+++ b/QTfrontend/net/newnetclient.cpp	Tue Dec 22 11:18:40 2015 -0500
@@ -183,7 +183,7 @@
 
 void HWNewNet::RawSendNet(const QByteArray & buf)
 {
-    qDebug() << "Client: " << QString(buf).split("\n");
+    qDebug() << "Client: " << QString(QString::fromUtf8(buf)).split("\n");
     NetSocket.write(buf);
     NetSocket.write("\n\n", 2);
 }