Wardje/ircbot — Issue #6: Non-breaking space raises unicode error
Author: Wardje
Created: 2011-12-09 17:30:41+00:00
State: open
Labels: bug

A [non-breaking space](http://en.wikipedia.org/wiki/Non-breaking_space) (U+00A0) on input breaks the bot due to a unicode error being thrown.

The chat

[09/12 12:24:57] * > IRCBot (~ircbot@Swift-D373E37.phlapa.east.verizon.net)
[09/12 12:25:21] <@Ward>
[09/12 12:25:22] * << IRCBot!~ircbot@Swift-D373E37.phlapa.east.verizon.net (Client exited)

On the bot end

error: uncaptured python exception, closing channel <__main__.IRCBot connected at 0xb6f1c76c> (:'utf8' codec can't decode byte 0xa0 in position 41: invalid start byte [/usr/lib/python3.2/asyncore.py|read|83] [/usr/lib/python3.2/asyncore.py|handle_read_event|444] [ircbot.py|handle_read|42])