Jinja2 converts all template variables into unicode before processing. Can anybody find a place where does this happen?
The problem is that it assumes that strings are ascii
, but we (at Roundup) are using utf-8
internally and our ORM (HyperDB) restores object properties to utf-8
automatically, and converting them all into unicode
in every view just before passing to templates is too much legwork.