fix unicode issues

This commit is contained in:
Romain Bignon 2011-05-03 16:44:39 +02:00
commit 8155b0b289
10 changed files with 11 additions and 11 deletions

View file

@ -41,6 +41,6 @@ class InaBrowser(BaseBrowser):
return self.page.get_video(video)
def iter_search_results(self, pattern):
self.location(self.buildurl('/recherche/recherche', search=pattern))
self.location(self.buildurl('/recherche/recherche', search=pattern.encode('utf-8')))
assert self.is_on_page(SearchPage)
return self.page.iter_videos()