Ticket #17 (closed defect: fixed)
wikipedia plug doesn't correctly handle utf8
| Reported by: | jink | Owned by: | bart |
|---|---|---|---|
| Priority: | minor | Milestone: | gozerbot version 0.8 |
| Component: | plugin | Version: | hg |
| Keywords: | wikipedia | Cc: |
Description
When trying to search for a wikipedia article in japanese, the bot threw this exception:
<jink> !wiki -ja 日本 <gozerbot> EXCEPTION: thr.py:32 run | threading.py:422 run | wikipedia.py:89 handle_wikipedia | generic.py:731 striphtml | generic.py:720 strip | sgmllib.py:95 feed | sgmllib.py:177 goahead | sgmllib.py:376 handle_charref | generic.py:726 handle_data | exceptions.UnicodeDecodeError?: 'utf8' codec can't decode byte 0xb2 in position 0: unexpected code byte
It seems that non-utf8 wiki-searches work fine.
Change History
Note: See
TracTickets for help on using
tickets.
