Ticket #2246: textile-utf-8.diff

File textile-utf-8.diff, 645 bytes (added by thomas@…, 18 years ago)

Patch to use utf-8 with textile

  • django/contrib/markup/templatetags/markup.py

     
    2727            raise template.TemplateSyntaxError, "Error in {% textile %} filter: The Python textile library isn't installed."
    2828        return value
    2929    else:
    30         return textile.textile(value)
    31 
     30        return textile.textile(value, encoding=settings.DEFAULT_CHARSET, output=settings.DEFAULT_CHARSET)
    3231def markdown(value):
    3332    try:
    3433        import markdown
Back to Top