fix encoding errors when sending a comment
This commit is contained in:
parent
7bf2c007ff
commit
ffca80282b
1 changed files with 2 additions and 2 deletions
|
|
@ -70,8 +70,8 @@ class DLFP(BaseBrowser):
|
|||
self.select_form(predicate=self._is_comment_submit_form)
|
||||
self.set_all_readonly(False)
|
||||
if title is not None:
|
||||
self['comment[title]'] = title
|
||||
self['comment[wiki_body]'] = message
|
||||
self['comment[title]'] = title.encode('utf-8')
|
||||
self['comment[wiki_body]'] = message.encode('utf-8')
|
||||
if int(reply_id) > 0:
|
||||
self['comment[parent_id]'] = str(reply_id)
|
||||
self['commit'] = 'Poster le commentaire'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue