utf-8 encode error.
This commit is contained in:
parent
743c4eca09
commit
837bbf0922
|
|
@ -73,7 +73,7 @@ class UrbanDictionary(callbacks.Plugin):
|
|||
|
||||
if result_type != None and result_type == "exact" and len(jsondata['list']) > 0:
|
||||
output = ircutils.mircColor(term, 'red') + ": "
|
||||
outdef = string.join([item['definition'].encode('utf-8') + " " + self._bu("[ex:]") + " " + item['example'] + " " + self._bu("[/ex]") + " " for item in jsondata['list']], " | ")
|
||||
outdef = string.join([item['definition'] + " " + self._bu("[ex:]") + " " + item['example'] + " " + self._bu("[/ex]") + " " for item in jsondata['list']], " | ")
|
||||
output += outdef
|
||||
irc.reply(output)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue