Kaydet (Commit) 5d7af7b1 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

Fixed #2246 -- Changed textile templatetag in contrib.markup to use DEFAULT_CHARSET setting

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3218 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 48562965
...@@ -27,7 +27,7 @@ def textile(value): ...@@ -27,7 +27,7 @@ def textile(value):
raise template.TemplateSyntaxError, "Error in {% textile %} filter: The Python textile library isn't installed." raise template.TemplateSyntaxError, "Error in {% textile %} filter: The Python textile library isn't installed."
return value return value
else: else:
return textile.textile(value) return textile.textile(value, encoding=settings.DEFAULT_CHARSET, output=settings.DEFAULT_CHARSET)
def markdown(value): def markdown(value):
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment