Ticket #17 (closed defect: fixed)

Opened 14 months ago

Last modified 12 months ago

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

Changed 12 months ago by bart

  • status changed from new to closed
  • resolution set to fixed

fixed in 0.8

Note: See TracTickets for help on using tickets.