A view I am using returns a string to a html template. The string which is returned contains special characters which are not represented correctly in the template. To put it simply a string which is returned from the view might look like this:
test = "\"Foo bar\""
return render_to_response('index.html', {'test': test})
And is displayed in the html template like this:
& quot;Foo bar& quot;
How can I fix the encoding so it is displayed correctly?