ahkscript / sjBot

Sjc1000's Python IRC bot for the ahkscript community.
GNU General Public License v3.0
6 stars 1 forks source link

!RSS Command #2

Closed joedf closed 10 years ago

joedf commented 10 years ago

On line https://github.com/ahkscript/sjBot/blob/master/sjBot.py#L260

I suggest changing xml = xml.encode("utf-16") to xml = xml.('UTF-8','strict') to use UTF-8 with strict errors enabled.

Will it change something?

Sjc1000 commented 10 years ago

Ill certainly give that a shot. I've tried about 100 things for that, and that wasn't one of them.

Sjc1000 commented 10 years ago

unicode(xml, errors='ignore')

This worked for me. I have added rss into v3. I shall be rolling it out soon. Hopefully :D

joedf commented 10 years ago

great!