mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Fix some URL encoding problems with Forvo.
This commit is contained in:
parent
c49466942d
commit
88981e4252
5
forvo.cc
5
forvo.cc
|
@ -143,8 +143,9 @@ void ForvoArticleRequest::addQuery( QNetworkAccessManager & mgr,
|
||||||
}
|
}
|
||||||
|
|
||||||
QUrl reqUrl = QUrl::fromEncoded(
|
QUrl reqUrl = QUrl::fromEncoded(
|
||||||
QString( "http://apifree.forvo.com/key/%1/format/xml/action/word-pronunciations/word/%2/language/%3" )
|
QString( "http://apifree.forvo.com/key/" + apiKey + "/format/xml/action/word-pronunciations/word/" +
|
||||||
.arg( apiKey ).arg( QString::fromAscii( QUrl::toPercentEncoding( gd::toQString( str ) ) ) ).arg( languageCode ).toUtf8() );
|
QString::fromAscii( QUrl::toPercentEncoding( gd::toQString( str ) ) ) + "/language/" + languageCode
|
||||||
|
).toUtf8() );
|
||||||
|
|
||||||
// printf( "req: %s\n", reqUrl.toEncoded().data() );
|
// printf( "req: %s\n", reqUrl.toEncoded().data() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue