On 4 May 2012 06:33, Geo <[email protected]> wrote: > I'm getting "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in > position 0: ordinal not in range(128)" when I include Chinese character in > the chameleon template. I'm using the newest pyramid 1.3 with python2.7. Any > help?
You need to specify an encoding if you want to include encoded <str>'s, e.g. "utf-8". It's an argument to the template renderer factory. \malthe -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. 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/pylons-discuss?hl=en.
