# HG changeset patch # User Goffi # Date 1392899289 -3600 # Node ID a8260ee887087209d6a88a87936d8706905ac2b7 # Parent 30fd34309949205829e5b8ea25dc907b5961b71e plugin XEP-0277: encoding fix diff -r 30fd34309949 -r a8260ee88708 src/plugins/plugin_xep_0277.py --- a/src/plugins/plugin_xep_0277.py Tue Feb 18 19:37:29 2014 +0100 +++ b/src/plugins/plugin_xep_0277.py Thu Feb 20 13:28:09 2014 +0100 @@ -246,8 +246,8 @@ _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']