From: James Bunton Date: Sat, 29 Sep 2007 09:59:17 +0000 (+1000) Subject: Fixed UTF-8 error X-Git-Url: https://code.delx.au/pymsnt/commitdiff_plain/7b5368b86bbb09516dd47ef8a651b893ac291df3?hp=7ad83eb9ccd11e0e213e2f3da81029358f84c04a Fixed UTF-8 error --- diff --git a/src/legacy/glue.py b/src/legacy/glue.py index 769900b..efcd32f 100644 --- a/src/legacy/glue.py +++ b/src/legacy/glue.py @@ -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)