[Answer]-Making call to API and having trouble decoding certain characters (Django)

1👍

simplejson.loads must take a unicode object for this to work.

This means that you need to amend the web_fetch() function to return a Unicode object, or you can just decode response_json as UTF8 if you know that that is its encoding.

response_json = response_json.decode('utf-8')

Leave a comment