StringParser delete null bytes now, SnapmaticPicture trims title
This commit is contained in:
parent
05f6091111
commit
c841a46fb7
2 changed files with 6 additions and 4 deletions
|
@ -30,5 +30,7 @@ StringParser::StringParser()
|
|||
QString StringParser::parseTitleString(QByteArray commitBytes, int maxLength)
|
||||
{
|
||||
Q_UNUSED(maxLength)
|
||||
return QTextCodec::codecForName("UTF-16LE")->toUnicode(commitBytes).trimmed();
|
||||
QString retStr = QTextCodec::codecForName("UTF-16LE")->toUnicode(commitBytes).trimmed();
|
||||
retStr.remove(QChar((char)0x00));
|
||||
return retStr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue