Go to file
James McCoy b42b06fe79 RSS._getConverter: Encode strings before handing them off to other functions
When the feed has a specified encoding, we'll be dealing with unicode objects
in the response from feedparser.parse().  To avoid possible UnicodeErrors, we
need to encode() before handing the string off to other functions, so the
other functions are always dealing with bytestrings instead of bytestrings and
unicode objects.  Mixing unicode and bytestrings will cause implicit
conversions of the unicode objects, which will most likely use the wrong
encoding.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
(cherry picked from commit 964c73f591)

Signed-off-by: Daniel Folkinshteyn <nanotube@users.sourceforge.net>
2011-12-12 11:04:03 -05:00
docs PLUGIN_TUTORIAL: Remove references to the old website. 2009-12-10 08:09:11 -05:00
plugins RSS._getConverter: Encode strings before handing them off to other functions 2011-12-12 11:04:03 -05:00
sandbox Add script to automatically update version with a datestamp upon commit. 2010-08-20 11:08:31 -04:00
scripts Honor supybot-test's timeout option and document the units 2011-10-11 11:55:39 -04:00
src core: make sure owner is never ignored. also simplify the logic flow in ignore checking. 2011-11-21 15:09:38 -05:00
test Add utils.net.isIPV4, with utils.net.isIP checking v4 or v6 2011-10-11 11:53:59 -04:00
.gitattributes Add export-ignore gitattributes for test/, sandbox/, and .git* 2009-03-16 23:43:28 -04:00
.gitignore Add *.pyc to gitignore 2009-02-28 00:11:52 -05:00
ACKS Updated to be STX as well as ordered chronologically. 2005-01-19 23:39:52 +00:00
ChangeLog Update ChangeLog and RELNOTES for 0.83.4.1 2009-05-25 13:15:44 -04:00
INSTALL Bump the minimum supported Python version to 2.4. 2009-10-23 19:35:24 -04:00
LICENSE LICENSE: Update Copyright date range 2009-05-07 22:41:39 -04:00
README README: It's a 3-clause, not 2-clause BSD license. 2010-10-10 17:40:19 -04:00
RELNOTES Bump the minimum supported Python version to 2.4. 2009-10-23 19:35:24 -04:00
setup.py Fix setup.py version import. It failed on clean install, since module supybot is not yet available. 2010-08-20 12:35:58 -04:00

EVERYONE:
---------
Read LICENSE.  It's a 3-clause BSD license, but you should read it
anyway.

USERS:
------
If you're upgrading, read RELNOTES.  There is also much documentation
at http://supybot.com/ for your perusal.  Please read it; we took the
time to write it, you should take the time to read it.

If you have any trouble, feel free to swing by #supybot on
irc.freenode.net or irc.oftc.net (we have a Supybot there relaying,
so either network works) and ask questions.  We'll be happy to help
wherever we can.  And by all means, if you find anything hard to
understand or think you know of a better way to do something,
*please* post it on Sourceforge.net so we can improve the bot!

WINDOWS USERS:
--------------
The wizards (supybot-wizard, supybot-newplugin, and
supybot-adduser) are all installed to your Python directory's
\Scripts.  What that *probably* means is that you'll run them like
this: C:\Python2x\python C:\Python2x\Scripts\supybot-wizard

DEVELOPERS:
-----------
We likewise have tons of developer documentation at
http://supybot.com/ for your learning adventures.  Have fun :)