Re: IUnicodeEncodingConflictResolver moronosity

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20100921225950.GB24085@platonas>
On Tue, Sep 21, 2010 at 07:39:46PM +0100, Chris Withers wrote:
> So, would anyone object if I change the default, on both trunk and the 
> 2.12 branch to some variant of:
> 
> class BasicEncodingConflictResolver(object):
>       implements(IUnicodeEncodingConflictResolver)
> 
>       def resolve(self, context, text, expression):
>           logging.warn('You should register an '
>                        'IUnicodeEncodingConflictResolver that matches '
>                        'your content')
>           return text.decode('ascii','replace')
> 
> ...and delete that devil spawn turd that is PreferredCharsetResolver?

If this means Zope2-the-application becomes unusable out of the box if
you've non-ASCII data in your database, then I'm -1.

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkyZOOYACgkQkVdEXeem14+uHACaA/KvQKHREitfvfPW3o1Cyx0m
+doAnjvoUUMT07CxHu3mK2WGJPsNpAXV
=Mw0k
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.