summaryrefslogtreecommitdiff
path: root/gatoperipheral.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gatoperipheral.cpp')
-rw-r--r--gatoperipheral.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gatoperipheral.cpp b/gatoperipheral.cpp
index 0228471..c4339ec 100644
--- a/gatoperipheral.cpp
+++ b/gatoperipheral.cpp
@@ -452,7 +452,7 @@ void GatoPeripheralPrivate::parseName(bool complete, quint8 data[], int len)
{
Q_Q(GatoPeripheral);
if (complete || !complete_name) {
- name = QString::fromAscii(reinterpret_cast<char*>(data), len);
+ name = QString::fromUtf8(reinterpret_cast<char*>(data), len);
complete_name = complete;
emit q->nameChanged();
}