Handling percent-sign (%) in Django blocktrans tags Handling percent-sign (%) in Django blocktrans tags django django

Handling percent-sign (%) in Django blocktrans tags


Check out this ticket - it's not a solution, but it sheds light on what's going on


Couldn't find a real solution to the problem, so I used a workaround: create a constant PERCENT_SIGN = u'%' and use that as {{ PERCENT_SIGN }} inside blocktrans-blocks.


Another ticket has been opened for this particular issue, with a patch that fixes it. Hopefully it will be fixed for Django 1.4.

https://code.djangoproject.com/ticket/16721