diff --git a/src/dict/stardict.cc b/src/dict/stardict.cc index 46862641..cbc51292 100644 --- a/src/dict/stardict.cc +++ b/src/dict/stardict.cc @@ -545,7 +545,7 @@ string StardictDictionary::handleResource( char type, char const * resource, siz articleNewText.clear(); } - return ( articleText.toUtf8().data() ); + return articleText.toStdString(); } case 'm': // Pure meaning, usually means preformatted text return "
" + Html::preformat( string( resource, size ), isToLanguageRTL() ) + "
";