Description
If you run the jabberbot you get sometimes unicode errors
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
self.run()
File "/home/user/workspace/moin-1.7/jabberbot/xmppbot.py", line 239, in run
self.loop()
File "/home/user/workspace/moin-1.7/jabberbot/xmppbot.py", line 259, in loop
while self.poll_commands(): pass
File "/home/user/workspace/moin-1.7/jabberbot/xmppbot.py", line 322, in poll_commands
self.handle_command(command)
File "/home/user/workspace/moin-1.7/jabberbot/xmppbot.py", line 345, in handle_command
handler(command, ignore_dnd)
File "/home/user/workspace/moin-1.7/jabberbot/xmppbot.py", line 1591, in _handle_notification
self.handle_changed_action(cmd_data, jid, contact)
File "/home/user/workspace/moin-1.7/jabberbot/xmppbot.py", line 359, in handle_changed_action
self.send_change_form(jid.as_unicode(), cmd_data)
File "/home/user/workspace/moin-1.7/jabberbot/xmppbot.py", line 589, in send_change_form
self.send_form(jid, form, _("Page change notification"), url_list)
File "/home/user/workspace/moin-1.7/jabberbot/xmppbot.py", line 503, in send_form
message.add_content(form)
File "/usr/local/lib/python2.6/dist-packages/pyxmpp/stanza.py", line 303, in add_content
content.as_xml(parent = self.xmlnode, doc = common_doc)
File "/usr/local/lib/python2.6/dist-packages/pyxmpp/objects.py", line 91, in as_xml
self.complete_xml_element(xmlnode, doc1)
File "/usr/local/lib/python2.6/dist-packages/pyxmpp/jabber/dataforms.py", line 652, in complete_xml_element
field.as_xml(xmlnode, doc)
File "/usr/local/lib/python2.6/dist-packages/pyxmpp/objects.py", line 91, in as_xml
self.complete_xml_element(xmlnode, doc1)
File "/usr/local/lib/python2.6/dist-packages/pyxmpp/jabber/dataforms.py", line 280, in complete_xml_element
xmlnode.setProp("label", self.label)
File "/var/lib/python-support/python2.6/libxml2.py", line 3464, in setProp
ret = libxml2mod.xmlSetProp(self._o, name, value)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 2: ordinal not in range(128)
(Re)starting XMPP thread...
Component selection
- general
Details
MoinMoin Version |
1.7 & 1.9.1 |
OS and Version |
Debian Lenny |
Python Version |
2.5 |
Server Setup |
farm |
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
French |
Workaround
Discussion
Seems like the bot cannot send a message with any non-ascii character.
Plan
- Priority:
- Assigned to:
- Status:
