fixed #1110, allow passing unicode to template render

This commit is contained in:
mdipierro
2015-12-04 11:16:15 -06:00
parent 0520770a7e
commit 71ae754fcd

View File

@@ -898,6 +898,9 @@ def render(content="hello world",
if not 'NOESCAPE' in context:
context['NOESCAPE'] = NOESCAPE
if isinstance(content, unicode):
content = content.encode('utf8')
# save current response class
if context and 'response' in context:
old_response_body = context['response'].body