Posted by guest at 2006-11-02 11:25:46
when i tried to get user info at certain contacts (in my case they have data in
cp-1250 charset),
icq connection goes down with error:
[2006-11-02 11:40:40] Traceback (most recent call last):
File
"/usr/lib64/python2.4/site-packages/twisted/python/log.py", line 53,
in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File
"/usr/lib64/python2.4/site-packages/twisted/python/log.py", line 38,
in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File
"/usr/lib64/python2.4/site-packages/twisted/python/context.py", line
59, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args,
**kw)
File
"/usr/lib64/python2.4/site-packages/twisted/python/context.py", line
37, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File
"/usr/lib64/python2.4/site-packages/twisted/internet/epollreactor.py",
line 157, in _doReadOrWrite
why = selectable.doRead()
File
"/usr/lib64/python2.4/site-packages/twisted/internet/tcp.py", line
348, in doRead
return self.protocol.dataReceived(data)
File "/home/zet/src/pyicq-t/src/tlib/oscar.py", line 642, in
dataReceived
state=func(flap)
File "/home/zet/src/pyicq-t/src/tlib/oscar.py", line 759, in
oscar_Data
func(snac)
File "/home/zet/src/pyicq-t/src/tlib/oscar.py", line 1656,
in oscar_15_03
self.gotUserInfo(sequenceNumber, rType,
[nick,first,last,email,homeCity,homeState,homePhone,homeFax,homeAddress,cellPhon
e,homeZip,homeCountry])
File "/home/zet/src/pyicq-t/src/legacy/icqt.py", line 77, in
gotUserInfo
userinfo[i] = userinfo[i].encode('utf-8', 'replace')
exceptions.UnicodeDecodeError: 'utf8' codec can't decode bytes in
position 1-5: unsupported Unicode code range
Posted by guest at 2007-02-09 22:58:03
I have an error like this:
[2007-02-09 23:54:12] Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/twisted/python/log.py", line 53, in
callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File
"/usr/lib/python2.4/site-packages/twisted/python/log.py", line 38, in
callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File
"/usr/lib/python2.4/site-packages/twisted/python/context.py", line 59,
in callWithContext
return self.currentContext().callWithContext(ctx, func, *args,
**kw)
File
"/usr/lib/python2.4/site-packages/twisted/python/context.py", line 37,
in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File
"/usr/lib/python2.4/site-packages/twisted/internet/pollreactor.py",
line 164, in _doReadOrWrite
why = selectable.doRead()
File
"/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 348,
in doRead
return self.protocol.dataReceived(data)
File "/home/jabber/bin/pyicq-t-0.8/src/tlib/oscar.py", line
642, in dataReceived
state=func(flap)
File "/home/jabber/bin/pyicq-t-0.8/src/tlib/oscar.py", line
759, in oscar_Data
func(snac)
File "/home/jabber/bin/pyicq-t-0.8/src/tlib/oscar.py", line
1656, in oscar_15_03
self.gotUserInfo(sequenceNumber, rType,
[nick,first,last,email,homeCity,homeState,homePhone,homeFax,homeAddress,cellPhon
e,homeZip,homeCountry])
File "/home/jabber/bin/pyicq-t-0.8/src/legacy/icqt.py", line
77, in gotUserInfo
userinfo[i] = userinfo[i].encode('utf-8', 'replace')
exceptions.UnicodeDecodeError: 'utf8' codec can't decode bytes in
position 4-7: unexpected end of data
Owner: ---