-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pystache cannot render Unicode strings containing non-ASCII text. #4
Comments
Just merged this in, thanks. |
I have the same problem and I do not have any idea how to work around. |
Are you using the newest version? There is a section on Unicode in the README: https://github.com/defunkt/pystache#unicode |
I'm using the pystache version 0.5.4, and python version 2.7 |
See this thread for ideas: #168 Try what you see there and reading more, and see if you can figure it out based on that. |
In
Template.render_tag
, Pystache converts the value about to be rendered into a string usingstr()
. If that value is a Unicode string containing any non-ASCII characters, rendering will fail with aUnicodeEncodeError
.enaeseth/pystache@f123343 is one way of working around this (really quite annoying) problem.
The text was updated successfully, but these errors were encountered: