diff options
author | Martin Bohacek <[email protected]> | 2013-09-26 16:29:13 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2013-09-27 17:35:06 +0200 |
commit | ed062e85f0988345a83af5fd24956e6b50db7739 (patch) | |
tree | 4839e4d7e914007356ef5a83756d875b9156762e /src/plugins/debugger/debuggerprotocol.cpp | |
parent | 6b8781bd842aa394063fafa68460939a61d9a2d7 (diff) |
Debugger: add support for dumping non-ASCII UTF-8 QChar
Change-Id: I87d9557c1e5b945972ddf3f63f8cb064514a3b54
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerprotocol.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerprotocol.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerprotocol.cpp b/src/plugins/debugger/debuggerprotocol.cpp index bb89c9adfe9..13335773326 100644 --- a/src/plugins/debugger/debuggerprotocol.cpp +++ b/src/plugins/debugger/debuggerprotocol.cpp @@ -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>"); |