3nids / quickfinder

Quick Finder is a QGIS 2.x plugin offering a single place to perform searches on project layers and online remote services
http://3nids.github.io/quickfinder/
Other
8 stars 14 forks source link

Japanese place names are not found by OSM finder #36

Closed minorua closed 9 years ago

minorua commented 9 years ago

If I enter a Japanese place name (e.g. 東京 - Tokyo), OSM finder doesn't provide any search results, though I can get some results on the Nominatim web site.

As QUrl.addQueryItem() takes 2 arguments of QString type, removing the following conversion to str type fixes this issue.

osmfinder.py, Line 51

-            'q'            : toFind.encode('utf-8'),
+            'q'            : toFind,

[Edited] 2015-06-12

minorua commented 9 years ago

Maybe toFind if self.asynchonous else toFind.encode('utf-8') is better?