[mediawiki] fix encoding error

This commit is contained in:
Bezleputh 2014-05-14 10:15:21 +02:00
commit 2d22590cbd

View file

@ -55,7 +55,7 @@ class MediawikiBackend(BaseBackend, ICapContent):
username, password)
def get_content(self, _id, revision=None):
_id = _id.replace(' ', '_').encode('utf-8')
_id = _id.replace(' ', '_')
content = Content(_id)
page = _id
rev = revision.id if revision else None