encole replies in utf-8
This commit is contained in:
parent
fe61b5ea3a
commit
e304bbcd5b
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ class ContactThreadPage(PageBase):
|
||||||
try:
|
try:
|
||||||
self.browser.select_form(name="sendMsg")
|
self.browser.select_form(name="sendMsg")
|
||||||
if isinstance(content, unicode):
|
if isinstance(content, unicode):
|
||||||
content = content.encode('iso-8859-15', 'replace')
|
content = content.encode('utf-8', 'replace')
|
||||||
self.browser['message'] = content
|
self.browser['message'] = content
|
||||||
|
|
||||||
self.browser.submit() # submit current form
|
self.browser.submit() # submit current form
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue