Julius Schwartzenberg wrote: > Julius Schwartzenberg wrote: >> Vitaliy Okulov wrote: >>> Çäðà âñòâóéòå, . >>> >>> ICQ connection lost! Reason: [Failure instance: Traceback >>> (failure with no frames): exceptions.UnicodeDecodeError: 'utf8' codec can't >>> decode byte 0xb0 in position 27: unexpected code byte >>> ] >>> >>> Can anybody say, how i can fix this? >> I got this one: >> >> ICQ connection lost! Reason: [Failure instance: Traceback (failure with >> no frames): exceptions.UnicodeDecodeError: 'utf8' codec can't decode >> byte 0xbb in position 31: unexpected code byte >> ] >> >> Someone in the conference event gets it immediatly when logging on. It >> seems we need to find a solution to properly handle the streams comming >> from AOL instead of just dumping everything through that Unicode decoder.
The unicode decoder is the proper solution. Everything should be dumped through the decoder, it's just that the decoder should be able to handle whatever comes its way without throwing up. There is work to do in unicode handling in pyaim-t and pyicq-t. In particular, there should be a single global unicode decoder. IIRC at the moment it is done in various places, and this is probably hitting on some ignored implementation that hasn't received the fixes other decoders have. ~Chris _______________________________________________ py-transports mailing list py-transports@blathersource.org http://lists.modevia.com/cgi-bin/mailman/listinfo/py-transports