]> code.delx.au - pymsnt/blobdiff - src/legacy/glue.py
Fixed UTF-8 error
[pymsnt] / 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)