From 771c4a3d0081ce46f8a24628622f1121c3e66753 Mon Sep 17 00:00:00 2001 From: Xavier Seignard Date: Mon, 18 Sep 2017 10:17:36 +0200 Subject: [PATCH] Changing the encoding To be consistent between android and ubuntu. See #75 --- src/ubuntu/serial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ubuntu/serial.cpp b/src/ubuntu/serial.cpp index 39a9793..ea72476 100644 --- a/src/ubuntu/serial.cpp +++ b/src/ubuntu/serial.cpp @@ -91,7 +91,7 @@ void Serial::openSerial(int scId, int ecId, const QVariantMap& arg) { void Serial::writeSerial(int scId, int ecId, const QVariantMap& arg) { if (port->isOpen()) { - QByteArray data = arg["data"].toString().toLatin1(); + QByteArray data = arg["data"].toString().toUtf8(); qint64 written = 0; while (written < data.size()) {