From 7b5368b86bbb09516dd47ef8a651b893ac291df3 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sat, 29 Sep 2007 19:59:17 +1000 Subject: [PATCH] Fixed UTF-8 error --- src/legacy/glue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2