Re: IUnicodeEncodingConflictResolver moronosity

"Charlie Clark" <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Organization Clark Consulting & Research
Message-ID <[email protected]>
Am 21.09.2010, 20:39 Uhr, schrieb Chris Withers <[email protected]>:

> 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')

This sounds like a very good idea. Might benefit from some brief  
documentation, to facilitate testing.

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
_______________________________________________
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 )
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.