From cf08f0127ae54533c93abedbcc7ba0529460a4f6 Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 20 Feb 2014 13:28:09 +0100 Subject: [PATCH] plugin XEP-0277: encoding fix --- src/plugins/plugin_xep_0277.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/plugin_xep_0277.py b/src/plugins/plugin_xep_0277.py index 7537bec9..d2142466 100755 --- a/src/plugins/plugin_xep_0277.py +++ b/src/plugins/plugin_xep_0277.py @@ -246,8 +246,8 @@ class XEP_0277(object): _entry.author.name = data.get('author', self.host.getJidNStream(profile)[0].userhost()).encode('utf-8') _entry.updated = float(data.get('updated', time())) _entry.published = float(data.get('published', time())) - entry_id = data.get('id', str(_uuid)) - _entry.id = entry_id + entry_id = data.get('id', unicode(_uuid)) + _entry.id = entry_id.encode('utf-8') if 'comments' in data: link = atom.Link() link.attrs['href'] = data['comments']