arthurk / django-disqus

Integrates DISQUS into Django
http://django-disqus.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
326 stars 101 forks source link

Problems with encodings #63

Open srtab opened 9 years ago

srtab commented 9 years ago

I'm having some problems with encodings when i use disqus_show_comments tag on the template. When i have special characters on my title causes error on get_config. The generation of output causes that error, my suggestion is to not use the format to create the output:

output = ['\tvar %s = "%s";' % (item, context[item]) for item in conf_vars \
              if item in context]
imposeren commented 9 years ago

I have updated yesterday and experience same problem.

imposeren commented 9 years ago

Solved problem on my site. Please merge my pull request