Merge pull request #234 from yetist/master

support utf8 description
This commit is contained in:
Tom Christie 2012-07-28 12:49:55 -07:00
commit 6dff0480f9

View File

@ -156,6 +156,9 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
description = _remove_leading_indent(description) description = _remove_leading_indent(description)
if not isinstance(description, unicode):
description = description.decode('UTF-8')
if html: if html:
return self.markup_description(description) return self.markup_description(description)
return description return description