diff --git a/earwigbot/wiki/category.py b/earwigbot/wiki/category.py index b65e367..f86e935 100644 --- a/earwigbot/wiki/category.py +++ b/earwigbot/wiki/category.py @@ -126,7 +126,7 @@ class Category(Page): self.site.SERVICE_API: self._get_size_via_api, self.site.SERVICE_SQL: self._get_size_via_sql } - return self.site.delegate(services, (member_type)) + return self.site.delegate(services, (member_type,)) @property def size(self): diff --git a/earwigbot/wiki/page.py b/earwigbot/wiki/page.py index d5a4cca..58efe50 100644 --- a/earwigbot/wiki/page.py +++ b/earwigbot/wiki/page.py @@ -501,7 +501,8 @@ class Page(CopyrightMixIn): if self._fullurl: return self._fullurl else: - slug = quote(self._title.replace(" ", "_"), safe="/:") + encoded = self._title.encode("utf8").replace(" ", "_") + slug = quote(encoded, safe="/:") path = self.site._article_path.replace("$1", slug) return ''.join((self.site.url, path))