code: def decode_page(page):
      
      if hasattr(page, 'read'):  # urllib
          if py3k:
              encoding = page.headers.get_param("charset") or "utf-8"
          else:
              encoding = page.headers.getparam("charset") or "utf-8"
          return text_type(page.read(), encoding=encoding)
      else:  # requests?
          encoding = page.headers.get("charset") or "utf-8"
          return text_type(page.content, encoding=encoding)
docs: Return unicode string of geocoder results.
  
      Nearly all services use JSON, so assume UTF8 encoding unless the
      response specifies otherwise.