comparison frontends/src/jp/base.py @ 965:5b95ce21c2d3

jp: fixed jid unicode decoding
author Goffi <goffi@goffi.org>
date Tue, 01 Apr 2014 21:16:02 +0200
parents e09f624d3aa9
children 2e052998c7eb
comparison
equal deleted inserted replaced
964:e09f624d3aa9 965:5b95ce21c2d3
194 expanded = names2jid[_jid] 194 expanded = names2jid[_jid]
195 elif _jid in nodes2jid: 195 elif _jid in nodes2jid:
196 expanded = nodes2jid[_jid] 196 expanded = nodes2jid[_jid]
197 else: 197 else:
198 expanded = jid 198 expanded = jid
199 return unicode(expanded) 199 return expanded.decode('utf-8')
200 200
201 def check(jid): 201 def check(jid):
202 if not jid.is_valid: 202 if not jid.is_valid:
203 error (_("%s is not a valid JID !"), jid) 203 error (_("%s is not a valid JID !"), jid)
204 self.quit(1) 204 self.quit(1)