Commit e1c8bb40 authored by hjk's avatar hjk
Browse files

debugger: move adding the double quotes for valueencoding==7 to the host side

parent 8dc369bc
......@@ -432,10 +432,11 @@ QString decodeData(const QByteArray &ba, int encoding)
return quoteUnprintableLatin1(QByteArray::fromBase64(ba));
}
case 7: { // %04x endoded 16 bit data
const QChar doubleQuote(QLatin1Char('"'));
const QByteArray decodedBa = QByteArray::fromHex(ba);
//qDebug() << quoteUnprintableLatin1(decodedBa) << "\n\n";
return QString::fromUtf16(reinterpret_cast<const ushort *>
(decodedBa.data()), decodedBa.size() / 2);
return doubleQuote + QString::fromUtf16(reinterpret_cast<const ushort *>
(decodedBa.data()), decodedBa.size() / 2) + doubleQuote;
}
}
return QCoreApplication::translate("Debugger", "<Encoding error>");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment