fix encoding errors when sending a comment

This commit is contained in:
Romain Bignon 2011-02-28 10:53:40 +01:00
commit ffca80282b

View file

@ -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'