[mediawiki] fix encoding error
This commit is contained in:
parent
e63255e0be
commit
2d22590cbd
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue