Debugger: add support for dumping non-ASCII UTF-8 QChar

Change-Id: I87d9557c1e5b945972ddf3f63f8cb064514a3b54
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Martin Bohacek
2013-09-26 16:29:13 +02:00
committed by hjk
parent 6b8781bd84
commit ed062e85f0
5 changed files with 21 additions and 33 deletions

View File

@@ -624,6 +624,10 @@ QString decodeData(const QByteArray &ba, int encoding)
scopeId.length() / 2));
return ip6.toString();
}
case Hex2EncodedUtf8WithoutQuotes: { // 28, %02x encoded 8 bit UTF-8 data without quotes
const QByteArray decodedBa = QByteArray::fromHex(ba);
return QString::fromUtf8(decodedBa);
}
}
qDebug() << "ENCODING ERROR: " << encoding;
return QCoreApplication::translate("Debugger", "<Encoding error>");