Cannot encode single quote (') using django render_to_string

I have a problem with django render_to_string and single quote encoding.

... = render_to_string('dummy.txt', {'request':request, 'text':text,}, context_instance=RequestContext(request)))

why only these quotes are translated to "# 39;" and all other special characters not?

+5
source share

All Articles