On Mon, Oct 11, 2010 at 10:54 PM, Chris Withers <ch...@simplistix.co.uk> wrote:
> What's the chameleon or z3c.pt way of dealing with this*?
> *'this' is stacks of ZODB-based page templates whose source may well be
> latin-1 encoded but, moreover, which are operating on a bunch of content
> that's *definitely* latin-1 encoded...
Eeh, damn, haven't heard of latin-1 users in a decade. With latin-1
you probably won't be able to use Chameleon. It handles both Unicode
and utf-8 encoded strings fine on its own. But that support is done
deep down in the inner workings and not configurable.
Your best bet now is to ignore Chameleon and put the "convert to
proper Unicode" item up higher on the todo list.
P.S. Of course it's all code, so you could subclass the right parts of
the machinery and make this stuff configurable. For anyone who's not
Malthe that will just be quite a bit of a pain and time consuming.
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -