olhoneles/olhoneles — pull request #19 by luciocorrea (2014-03-17 22:11:12+00:00)
Title: Fixes encoding problem in retrieve_uri().  We now use requests.content i...

...nstead of requests.text.

Sometimes the server returns an encoding but the page uses another one. This way, we can't not assure that we got a unicode object.

Using part of previous code, we force the decode of the string to utf-8. It that fails, we decode using the encoding returned by requests.