I don't believe you need to enable the EncodingFilter as TG should encode the output for you. And rather than using _cpFilterList in your class, try putting
decodingFilter.on = True in your dev.cfg file. Hopefully this works! Sean Cazzell On Sun, 2005-11-06 at 14:39 -0800, jak137 wrote: > Thank you for links. DecodingFilter from CherryPy would probably solve > the problem, but I do not use CherryPy directly. My class inherits from > turbogears.controllers.Root and when I try to add to it filters in the > way it is done in http://www.cherrypy.org/wiki/UnicodeAware: > > from turbogears import controllers > class Root(controllers.Root): > _cpFilterList = [DecodingFilter('utf-8'), EncodingFilter('utf-8')] > > an exception is a result: > > Traceback (most recent call last): > File "pren1-start.py", line 20, in ? > from pren1.controllers import Root > File "/home/jak/pren1/pren1/controllers.py", line 15, in ? > class Root(controllers.Root): > File "/home/jak/pren1/pren1/controllers.py", line 17, in Root > _cpFilterList = [DecodingFilter('utf-8'), EncodingFilter('utf-8')] > TypeError: default __new__ takes no parameters > > So, is it possible to enable decoding in TurboGears without modifying > the module's source code? >

