From 88981e42524a9896d1de0e07aad45eb7912fee6c Mon Sep 17 00:00:00 2001 From: Konstantin Isakov Date: Tue, 31 Aug 2010 17:19:53 +0400 Subject: [PATCH] Fix some URL encoding problems with Forvo. --- forvo.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forvo.cc b/forvo.cc index 6e0f3339..a980b0c0 100644 --- a/forvo.cc +++ b/forvo.cc @@ -143,8 +143,9 @@ void ForvoArticleRequest::addQuery( QNetworkAccessManager & mgr, } QUrl reqUrl = QUrl::fromEncoded( - QString( "http://apifree.forvo.com/key/%1/format/xml/action/word-pronunciations/word/%2/language/%3" ) - .arg( apiKey ).arg( QString::fromAscii( QUrl::toPercentEncoding( gd::toQString( str ) ) ) ).arg( languageCode ).toUtf8() ); + QString( "http://apifree.forvo.com/key/" + apiKey + "/format/xml/action/word-pronunciations/word/" + + QString::fromAscii( QUrl::toPercentEncoding( gd::toQString( str ) ) ) + "/language/" + languageCode + ).toUtf8() ); // printf( "req: %s\n", reqUrl.toEncoded().data() );