forked from qt-creator/qt-creator
Debugger: add support for dumping non-ASCII UTF-8 QChar
Change-Id: I87d9557c1e5b945972ddf3f63f8cb064514a3b54 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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>");
|
||||
|
||||
Reference in New Issue
Block a user