Re: [Repoze-dev] Problem with formencode, or chameleon.zpt ?
On 1 February 2010 18:47, georgehu wrote: > It worked without problem with other language such as "de". Is it a > problem of chameleon.zpt? Try and upgrade to 1.1.1, the post back. The normal process with bugs in Chameleon has been that a failing test is committed, then I'll usually get around to fixing it within a day or two at the most. \malthe ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] Problem with formencode, or chameleon.zpt ?
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 "", line 234, in render > File "", 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
[Repoze-dev] Problem with formencode, or chameleon.zpt ?
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 "", line 234, in render File "", 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? ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev