File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
core/src/main/scala/org/dbpedia/extraction/util Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class WikiApi(url: URL, language: Language)
5353 // -> "generator" instead of "list" and "gapnamespace" instead of "apnamespace" ("gap" is for "generator all pages")
5454
5555 // Retrieve list of pages
56- val response = query(" ?action=query&format=xml&list=allpages&apfrom=" + fromPage + " &aplimit=" + pageListLimit + " &apnamespace=" + namespace.code)
56+ val response = query(" ?action=query&format=xml&list=allpages&apfrom=" + URLEncoder .encode( fromPage, " UTF-8 " ) + " &aplimit=" + pageListLimit + " &apnamespace=" + namespace.code)
5757
5858 // Extract page ids
5959 val pageIds = for (p <- response \ " query" \ " allpages" \ " p" ) yield (p \ " @pageid" ).head.text.toLong
You can’t perform that action at this time.
0 commit comments