diff --git a/aard.cc b/aard.cc index d34a556b..2505aeaa 100644 --- a/aard.cc +++ b/aard.cc @@ -460,7 +460,7 @@ void AardDictionary::loadArticle( quint32 address, encodedLink.push_back( *i ); prev = false; } - encodedLink = string( QUrl::toPercentEncoding( QString::fromUtf8( encodedLink.c_str() ) ).data() ); + encodedLink = string( QUrl( QString::fromUtf8( encodedLink.data(), encodedLink.size() ) ).toEncoded().data() ); articleText = "" + link + ""; } }