On Tue, Sep 21, 2010 at 8:17 PM, Chris Withers <ch...@simplistix.co.uk> wrote:
> I like the idea of IUnicodeEncodingConflictResolver, ...
> Why has no-one noticed this?
Because there's not all that many people left using plain Zope 2 and
upgrading to new versions.
The rest is using Plone, which has its own version of this:
if isinstance(structure, str):
text = structure.decode('utf-8', 'replace')
text = unicode(structure)
def resolve(self, context, text, expression):
We can do this, as we force manage_page_charset and
default-zpublisher-encoding to be utf-8 and only support utf-8 and
Unicode in the database.
Zope 2 itself tries to support arbitrary encodings, at which point it
can only guess badly or fail.
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -