On 2/1/10 12:47 PM, georgehu wrote:
> This is the third time I asked the same question, I really appreciate
> some body could come up with a solution. I'm trying to change the
> language of the error message ,
>
> formencode.api.set_stdtranslation(languages=["zh_CN"])
>
> then I get,
>
> ........
> File
> "/home/systemadmin/12bfg/lib/python2.5/site-packages/Chameleon-1.0.8-py2.5.egg/chameleon/core/template.py",
> line 184, in cook_and_render
>       return func(econtext, rcontext)
>     File "<string>", line 234, in render
>     File "<string>", line 111, in _callback_innerContent
> UnicodeEncodeError: 'ascii' codec can't encode characters in position
> 0-5: ordinal not in range(128)
>
> It worked without problem with other language such as "de". Is it a
> problem of chameleon.zpt?

The reason you haven't got an answer yet is probably because no one knows the 
answer.  This seems like some sort of integration problem if it only happens 
when formencode and chameleon are in the mix (and doesn't happen in isolation 
in one or the other).  It would be helpful if you could narrow it down to a 
chameleon-only test case.

- C


_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to