diff -r b3d1b356e544 -r 588aff83bb87 hgpoll.py --- a/hgpoll.py Sun Aug 02 17:15:00 2015 +0300 +++ b/hgpoll.py Mon Aug 03 19:45:57 2015 +0300 @@ -439,6 +439,11 @@ Irc.broadcast ('Error while processing %s: %s' % (commit_node, e)) continue + # Encode messages + for messagelist in messages: + for i in range (0, len (messagelist)): + messagelist[i] = messagelist[i].decode ("utf-8", "ignore").encode("ascii", "ignore") + fullMessageLength = len (''.join (messages[2])) if fullMessageLength > 3000: