Docs - API basics: About print and utf-8 #125

Closed
Munawwar opened this Issue May 15, 2012 · 0 comments

2 participants

@Munawwar

This is about the basic example at http://jinja.pocoo.org/docs/api/#basics.
I've spent some time trying to figure out why Jinja wasn't working with unicode.
Turns out that Jinja wasn't the problem, rather print was.

Just had to do a
print template.render().encode('utf-8');

You can close this task if you think it is something that every python programmer should be aware of (python newbie here).

@jeffwidman jeffwidman added the docs label Apr 13, 2016
@Munawwar Munawwar closed this Jun 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment