Good code is its own best documentation. As you're about to add a comment, ask yourself, 'How can I improve the code so that this comment isn't needed?' Improve the code and then document it to make it even clearer.
Well it wasn't parsing correctly with utf-8 encoding. However now I get a problem with urllib.py when I use detect() on unicode text with "o gato em suas calças com queijo"
"UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal"
I am being sponsored by Syntress! They bought me an amazing dedicated server to run catonmat on. If you're looking web services, I highly recommend the Syntress guys!
Education Sponsors
I am being sponsored by A-Writer! If you ever need help with essay writing, look no further than A-Writer! They will help you with your writing in as quickly as 3 hours!
Well it wasn't parsing correctly with utf-8 encoding. However now I get a problem with urllib.py when I use detect() on unicode text with "o gato em suas calças com queijo"
"UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal"
I will mess around with it some more.
Reply To This Comment