My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 83: UnicodeDecodeError in twisted/words/xish/domish.py
  Back to list
Status:  Fixed
Owner:  jadest...@gmail.com
Closed:  Jan 2008


 
Reported by jadest...@gmail.com, Dec 15, 2007
Posted by guest at 2007-07-21 15:51:15

The error is caused by legacy/buddies.py, line 230:
self.session.pytrans.xdb.setListEntry("roster", self.session.jabberID,
contact.lower(), payload=self.xdbcontacts[contact.lower()]) and has to be fixed
there.

I'll add a possible fix when I get this error again.

[2007-07-21 17:38:53] Traceback (most recent call last):
          File "/usr/share/jabber-pyicq/src/tlib/oscar.py", line 647,
in dataReceived
            state=func(flap)
          File "/usr/share/jabber-pyicq/src/tlib/oscar.py", line 756,
in oscar_Data
            d.callback(snac)
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
229, in callback
            self._startRunCallbacks(result)
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
294, in _startRunCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line
307, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/usr/share/jabber-pyicq/src/legacy/icqt.py", line 401,
in gotBuddyList
            self.readGroup(l[0])
          File "/usr/share/jabber-pyicq/src/legacy/icqt.py", line 380,
in readGroup
            self.readGroup(member.users, parent=member)
          File "/usr/share/jabber-pyicq/src/legacy/icqt.py", line 390,
in readGroup
            self.oscarcon.legacyList.updateSSIContact(member.name, nick=unick)
          File "/usr/share/jabber-pyicq/src/legacy/buddies.py", line
230, in updateSSIContact
            self.session.pytrans.xdb.setListEntry("roster",
self.session.jabberID, contact.lower(),
payload=self.xdbcontacts[contact.lower()])
          File "/usr/share/jabber-pyicq/src/xdb/xmlfiles.py", line
309, in setListEntry
            self.set(jabberID, xdbns, list)
          File "/usr/share/jabber-pyicq/src/xdb/xmlfiles.py", line 91,
in set
            t = document.toXml()
          File
"/usr/lib/python2.4/site-packages/twisted/words/xish/domish.py", line
518, in toXml
            return s.getValue()
          File
"/usr/lib/python2.4/site-packages/twisted/words/xish/domish.py", line
36, in getValue
            return u"".join(self.writelist)
        exceptions.UnicodeDecodeError: 'utf8' codec can't decode byte 0xbf in
position 11: unexpected code byte
Jan 19, 2008
Project Member #1 d...@jabber.fsinf.de
Probably fixed in revision 234.
Status: Fixed

Powered by Google Project Hosting