[Zope-dev] Zope 2.12 20% slower than Zope 2.9?!
Hanno Schlichting
hanno at hannosch.eu
Mon Oct 11 17:11:27 EDT 2010
On Mon, Oct 11, 2010 at 10:54 PM, Chris Withers <chris at 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.
Hanno
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.
More information about the Zope-Dev
mailing list