From 404f5754a028f1ddc4f812fca8e841f62d288ce7 Mon Sep 17 00:00:00 2001 From: Ragner Magalhaes Date: Tue, 2 Dec 2008 21:21:14 +0000 Subject: [PATCH] Fixing UnicodeDecodeError in buddy's alias When the buddy's alias has a utf-8 character it was causing a UnicodeDecodeError Signed-off-by: Ragner Magalhaes Acked-by: Bruno Abinader git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1448 596f6dd7-e928-0410-a184-9e12fd12cf7e --- buddy.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buddy.pyx b/buddy.pyx index 3ccc100..843069f 100644 --- a/buddy.pyx +++ b/buddy.pyx @@ -67,7 +67,7 @@ cdef class Buddy: c_alias = blist.purple_buddy_get_alias_only( \ self._get_structure()) if c_alias: - return c_alias + return unicode(c_alias, 'utf-8') else: return None alias = property(__get_alias) -- 1.7.9.5