Christophe de VIENNE schrieb:
> Indeed, I wrote a decated templating engine that can generate, from a
> particular data structure, several kind of output.
> This made it possible to make the rendering engine choice handled by
> expose depending on the accept header (or tg_format).
> 
> By the way, why is this charset not set for json ?

This was answered here:
http://trac.turbogears.org/ticket/1995

Btw, you can configure a default charset for your templating engine with
the setting "your_engine_name.encoding". If you set it to None, then no
charset will be added. But maybe your templating engine also produces
output where you want it added, then this won't help you.

I think instead of using a blacklist for the mime types without charset
(currently only json) we should better use a whitelist for those mime
types where the charset should be added.

Opinions?

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to