| Issue 21: | broken encoding in cyrillic status messages | |
| Back to list |
Posted by xfyre at 2006-04-01 13:30:46
Status messages written in cyrillic for some of contacts using ICQ protocol v.9
appears to be broken. It displays chinese letters instead of cyrillic. Maybe it
can be fixed in the same way as a problem with cyrillic nicknames?
Posted by jadestorm at 2006-04-01 18:30:17
Do you have any logs? I can try this out but it's one of those "in the
past this worked fine" things so I may not be able to duplicate. I'll try
though.
Posted by xfyre at 2006-04-02 06:46:13
Could you suggest what should I search for? Something like 'cbGetAway' for a
problematic contact?
Posted by xfyre at 2006-04-07 10:32:31
here's a piece of log (270339642 is a number of contacts that has problem with
away message encoding):
=====
[2006-04-07 14:22:20] _cbGetAway [2, 6, 0, 0, 73L,
'\t270339642\x00\x00\x00\x08\x00\x01\x00\x02\x00p\x00\x0c\x00%\x00\x00\x00\x00\x
00\x00\x00\x00\x04\x00\t\x0
0\x00\x00\x00\x00\x00\\q\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
\x00\x00\x00\x00\x00\n\x00\x04\x00\x00\x00\x00\x00\x04\x00\x02\x00\n\x00\x06\x
00\x04\x10\x00\x00\x01\x00\x0f\x00\x04\x00\x00\x16%\x00\x1d\x00\x14\x00\x01\x01\
x10\xa1\xdfl5\x1c\x81\x88\x81\x8e\xa3d\xdam\xbe\xd5l\x00\x03\x00\x04D6\'7\x00\
x03\x00$text/x-aolrtf;
charset="unicode-2-0"\x00\x04\x00\xd8\x00<\x00h\x00t\x00m\x00l\x00&
gt;\x00<\x00b\x00o\x00d\x00y\x00>\x04 \x04_\x04 \x04U\x04 \x00\xbb\x04!
\x04\n\x04 \x00\xb7\x04 \x04U\x04 \x04\x06\x04 \x00\xb0\x04! \x1a\x04
\x00\xb5\x04 \x00\xbb\x04!\x04\x0f\x00 \x04!\x04\x03\x04 \x00\xb5\x04
!\x16\x04!
!\x04 \
x00\xb0\x04!\x04\x03\x00 \x04 \x04\x05\x04 \x00\xb5\x04! \x1a\x00 \x04
\x04\x05\x04 \x00\xb0\x00 \x04 \x04X\x04 \x00\xb5\x04!\x04\x03\x04! \x1a\x04
\x00\xb5\x
00.\x00<\x00b\x00r\x00/\x00>\x00[\x00C\x00u\x00r\x00r\x00e\x00n\x00t\x00l\
x00y\x00
\x00a\x00w\x00a\x00y\x00]\x00<\x00/\x00b\x00o\x00d\x00y\x00>\x00<\x00/\
x00h
\x00t\x00m\x00l\x00>']
[2006-04-07 14:22:20] AIM Extended Status: user 270339642
v: '\x00\x01\x01\x10\xa1\xdfl5\x1c\x81\x88\x81\x8e\xa3d\xdam\xbe\xd5l'
[2006-04-07 14:22:20] extracted icon hash: extflags = 0x1, iconhash =
a1df6c351c8188818ea364da6dbed56c
[2006-04-07 14:22:20] INFO :: ilya.obshadko@gmail.com :: icqt.B ::
sendAwayPresence :: {'status':
u'\x00\u0420\u045f\u0420\u0455\u0420\xbb\u0421\u0420\u0420\x
b7\u0420\u0455\u0420\u0406\u0420\xb0\u0421\u201a\u0420\xb5\u0420\xbb\u0421\u040f
\u0421\u0403\u0420\xb5\u0420\u2116\u0421\u2021\u0420\xb0\u0421\u0403 \u0420\u
0405\u0420\xb5\u0421\u201a \u0420\u0405\u0420\xb0
\u0420\u0458\u0420\xb5\u0421\u0403\u0421\u201a\u0420\xb5.\x00\u5b00\u4300\u7500\
u7200\u7200\u6500\u6e00\u740
0\u6c00\u7900\u2000\u6100\u7700\u6100\u7900\u5d00\ufffd', 'c':
<contact.Contact instance at 0xb75da1ac>, 'show': 'away', 'url': '',
'buddyjid': '270339642@icq
.matrix.xfyre.com', 'charset': 'utf-16be', 'm': <_sre.SRE_Match object at
0xb76e6720>, 'ptype': None, 'user': <OSCARUser 270339642, flags ['free',
'away', 'ic
q'], online for 94 minutes, idle for 10 minutes, caps ['icq2go',
'icq5unknown1',
'icq5unknown2', 'icq_direct', 'icqpushtotalk', 'icqvideochat', 'icqvoicechat'
, 'icqxtraz', 'rtf', 'sendfile', 'serv_rel', 'unicode', ('unknown',
'~\x11\xb7x\xa3SI&\xa8\x02DsR\x08\xc4*'), ('unknown',
'\xb6\x07Cx\xf5\x0cJ\xc7\x90\x92Y8P-
\x05\x91')]>, 'msg': ['text/x-aolrtf; charset="unicode-2-0"',
'\x00<\x00h\x00t\x00m\x00l\x00>\x00<\x00b\x00o\x00d\x00y\x00>\x04
\x04_\x04 \x04U\x04 \x00\xbb\x
04!\x04\n\x04 \x00\xb7\x04 \x04U\x04 \x04\x06\x04 \x00\xb0\x04! \x1a\x04
\x00\xb5\x04 \x00\xbb\x04!\x04\x0f\x00 \x04!\x04\x03\x04 \x00\xb5\x04
!\x16\x04!
!\x0
4 \x00\xb0\x04!\x04\x03\x00 \x04 \x04\x05\x04 \x00\xb5\x04! \x1a\x00 \x04
\x04\x05\x04 \x00\xb0\x00 \x04 \x04X\x04 \x00\xb5\x04!\x04\x03\x04! \x1a\x04
\x00\xb
5\x00.\x00<\x00b\x00r\x00/\x00>\x00[\x00C\x00u\x00r\x00r\x00e\x00n\x00t\x0
0l\x00y\x00
\x00a\x00w\x00a\x00y\x00]\x00<\x00/\x00b\x00o\x00d\x00y\x00>\x00<\x00/\
x
00h\x00t\x00m\x00l\x00>'], 'icq2jid': <function icq2jid at 0xb76d91ec>}
:: Away (utf-16be, text/x-aolrtf; charset="unicode-2-0") message
^@<D0><A0><D1><9F>
<D0><A0><D1><95><D0><A0><C2><BB>
<D0><A1><D0><A0><D0><A0><C2><B7>
<D0><A0><D1><95><D0><A0><D0><86>
<D0><A0><C2><B0><D0><A1><E2><80>
<9A><D0><A0><C2><B5><D0><A0>
<C2><BB><D0><A1><D0><8F>
<D0><A1><D0><83><D0><A0><C2><B5>
<D0><A0><E2><84><96><D0><A1><E2>
<80><A1><D0><A0><C2><B0><D0><A1>
<D0><83>
<D0><A0><D0><85><D0><A0><C2>
<B5><D0><A1><E2><80><9A>
<D0><A0><D0><85><D0><A0><C2><B0>
<D0><A0><D1><98><D0><A0><C2><B5>
<D0><A1><D0><83><D0><A1><E2><80>
<9A><D0><A0><C2><B5>.^@<E5><AC><80&
gt;
<E4><8C><80><E7><94><80><E7><88>
<80><E7><88><80><E6><94><80><E6>
<B8><80><E7><90><80><E6><B0><80>
<E7><A4><80><E2><80><80><E6><84>
<80><E7><9C><80><E6><84><80>
<E7><A4><80><E5><B4><80><EF><BF>
<BD>
[2006-04-07 14:22:20] INFO :: ilya.obshadko@gmail.com :: Session ::
sendPresence
:: {'status': u'Idle 10 minutes - \x00\u0420\u045f\u0420\u0455\u0420\xbb\u042
1\u0420\u0420\xb7\u0420\u0455\u0420\u0406\u0420\xb0\u0421\u201a\u0420\xb5\u0420\
xbb\u0421\u040f \u0421\u0403\u0420\xb5\u0420\u2116\u0421\u2021\u0420\xb0\u0421
\u0403 \u0420\u0405\u0420\xb5\u0421\u201a \u0420\u0405\u0420\xb0
\u0420\u0458\u0420\xb5\u0421\u0403\u0421\u201a\u0420\xb5.\x00\u5b00\u4300\u7500\
u7200\u7200\u
6500\u6e00\u7400\u6c00\u7900\u2000\u6100\u7700\u6100\u7900\u5d00\ufffd',
'show':
'away', 'url': None, 'fro': '270339642@icq.matrix.xfyre.com', 'avatarHash': '
2651de13d52c66997993f8f727eac5c4b2118222', 'ptype': None, 'priority': None,
'to': u'ilya.obshadko@gmail.com', 'nickname': 'S.B.Ushakov', 'payload':
[<twisted.
words.xish.domish.Element object at 0xb75af90c>]} ::
[2006-04-07 14:22:20] INFO :: ilya.obshadko@gmail.com :: legacylist.LegacyList
:: updateSSIContact :: {'status': u'Idle 10 minutes - \x00\u0420\u045f\u0420\u0
455\u0420\xbb\u0421\u0420\u0420\xb7\u0420\u0455\u0420\u0406\u0420\xb0\u0421\u201
a\u0420\xb5\u0420\xbb\u0421\u040f \u0421\u0403\u0420\xb5\u0420\u2116\u0421\u20
21\u0420\xb0\u0421\u0403 \u0420\u0405\u0420\xb5\u0421\u201a
\u0420\u0405\u0420\xb0
\u0420\u0458\u0420\xb5\u0421\u0403\u0421\u201a\u0420\xb5.\x00\u5b00\u4300\u
7500\u7200\u7200\u6500\u6e00\u7400\u6c00\u7900\u2000\u6100\u7700\u6100\u7900\u5d
00\ufffd', 'presence': None, 'url': '', 'show': 'away', 'ipaddr': '0.0.0.0', '
lanipport': 0L, 'nick': None, 'contact': '270339642', 'lanipaddr': '0.0.0.0',
'icq2jid': <function icq2jid at 0xb76d91ec>, 'icqprotocol': 9} ::
=====
Posted by maxbritov at 2007-02-08 17:41:57
http://www.blathersource.org/bugs_view.php?projid=pyicq-t&bugid=89
Posted by Z_God at 2007-04-19 13:34:23
I've got the same problem. I can make logs easily if still necessary.
Jan 12, 2008
Project Member
#1
volk...@gmail.com
Status:
Fixed
|