fix unicode issues
This commit is contained in:
parent
69fb2d3aa6
commit
bb06a46abf
2 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ class PapBrowser(BaseBrowser):
|
|||
}
|
||||
|
||||
def search_geo(self, pattern):
|
||||
fp = self.openurl(self.buildurl('http://www.pap.fr/index/ac-geo', q=pattern))
|
||||
fp = self.openurl(self.buildurl('http://www.pap.fr/index/ac-geo', q=pattern.encode('utf-8')))
|
||||
return json.load(fp)
|
||||
|
||||
TYPES = {Query.TYPE_RENT: 'location',
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class SeLogerBrowser(BaseBrowser):
|
|||
}
|
||||
|
||||
def search_geo(self, pattern):
|
||||
fp = self.openurl(self.buildurl('http://www.seloger.com/js,ajax,villequery_v3.htm', ville=pattern, mode=1))
|
||||
fp = self.openurl(self.buildurl('http://www.seloger.com/js,ajax,villequery_v3.htm', ville=pattern.encode('utf-8'), mode=1))
|
||||
return json.load(fp)
|
||||
|
||||
TYPES = {Query.TYPE_RENT: 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue