the headword length is not correct

due to the parse of the headword length ,   the last headword has incorrect data length ,which has
cross over many headwords.

the string(constData) will ignore the other headwords coming behind the \0 character.
This commit is contained in:
Xiao YiFang 2022-06-22 07:52:02 +08:00
parent 7bcdfac334
commit 01a8995504

3
mdx.cc
View file

@ -949,7 +949,8 @@ void MdxDictionary::loadArticle( uint32_t offset, string & articleText, bool noF
article = filterResource( articleId, article );
}
articleText = article.toStdString();
// articleText = article.toStdString();
articleText = string( article.toUtf8().constData() );
}
QString & MdxDictionary::filterResource( QString const & articleId, QString & article )