short strings are latin1 encoded not utf8

This commit is contained in:
Matt Broadstone 2014-08-05 15:45:25 -04:00
parent 3ce39c273f
commit bb2e9881ea
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ QVariant Frame::readAmqpField(QDataStream &s, QAMQP::ValueType type)
s >> size;
buffer.resize(size);
s.readRawData(buffer.data(), buffer.size());
return QString::fromUtf8(buffer.data(), size);
return QString::fromLatin1(buffer.data(), size);
}
case LongString:
{