~sam92/openlp/bug-1326664-2.0

Viewing all changes in revision 2180.

  • Committer: Raoul Snyman
  • Author(s): Philip Ridout
  • Date: 2013-12-20 22:14:21 UTC
  • mfrom: (2174.4.2 1251437_2.0)
  • Revision ID: raoul@snyman.info-20131220221421-d40hs3zqh3uhjwal
It appears that when a url encoded in unicode is requested with urllib2.urlopen .getUrl() returns unicode. However the url that we request in the biblegateway importer contains redirects. In this case the redirect uses an utf-8 url (im guessing that) urllib2 takes this as an utf-8 encoded url, so returns getUrl() encoded as utf-8.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: