Mercurial > p > roundup > code
diff roundup/cgi/engine_jinja2.py @ 4772:cf22ac054c08
Jinja2 template render should specify the encoding
| author | Pradip Caulagi <caulagi@gmail.com> |
|---|---|
| date | Fri, 15 Mar 2013 15:19:53 +0530 |
| parents | a6b3134f26da |
| children | 85484d35f1a2 |
line wrap: on
line diff
--- a/roundup/cgi/engine_jinja2.py Fri Mar 08 16:33:30 2013 +0100 +++ b/roundup/cgi/engine_jinja2.py Fri Mar 15 15:19:53 2013 +0530 @@ -75,7 +75,7 @@ # [ ] limit the information passed to the minimal necessary set c = context(client, self, classname, request) c.update({'options': options}) - return self._tpl.render(c) + return self._tpl.render(c).encode(client.charset, ) def __getitem__(self, name): # [ ] figure out what are these for
