]> code.delx.au - pymsnt/commitdiff
Fixed UTF-8 error
authorJames Bunton <jamesbunton@fastmail.fm>
Sat, 29 Sep 2007 09:59:17 +0000 (19:59 +1000)
committerJames Bunton <jamesbunton@fastmail.fm>
Sat, 29 Sep 2007 09:59:17 +0000 (19:59 +1000)
src/legacy/glue.py

index 769900b7323f00e9b7d8405bdd803ec6019352bf..efcd32fc72e132fb35f3cd283019b8e51d90b75d 100644 (file)
@@ -484,8 +484,8 @@ class LegacyConnection(msn.MSNConnection):
                if not (c and msnContact): return
 
                show, ptype = state2presence(msnContact.status)
-               status = msnContact.personal.decode("utf-8")
-               screenName = msnContact.screenName.decode("utf-8")
+               status = msnContact.personal.decode("utf-8", "replace")
+               screenName = msnContact.screenName.decode("utf-8", "replace")
 
                c.updateNickname(screenName, push=False)
                c.updatePresence(show, status, ptype, force=True)