Hi,
I have a lib/languages.py file only with a dict format e.g.:
en = {}
en["farewell"] = "goddbye"
es = {}
es["farewell"] = "Adiós"
Also I have a lib/basehandler.py where I use language.py and this
basehandler has a Unicode literal (# -*- coding: utf-8 -*-)
The problem is that when I render a template in Spanish (es), it has on its
html "Adi&ocuate;s" and off course the text the the user see is
"Adi&oaucte;s" instead "Adiós"
I tried to use on languages.py
es["farewell"] = "Adiós"
or add Unicode literal (# -*- coding: utf-8 -*-) in this file, but nothing
work.
Can anyone please, tell me what I'm doing bad or what's the best way to
work with Unicode on Jinja2
Here is the source code https://github.com/coto/gae-boilerplate and if you
want to see the problem http://appengine.protoboard.cl/?&hl=es
Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pocoo-libs/-/z9VmV9nXcCoJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en.