[Zope] Re: How to convert Zope instance charset?

Andreas Jung lists at andreas-jung.com
Sun Apr 24 12:08:20 EDT 2005



--On Sonntag, 24. April 2005 18:01 Uhr +0200 Max M <maxm at mxm.dk> wrote:

> Daniel Dekany wrote:
>> Sunday, April 24, 2005, 4:22:10 PM, Andreas Jung wrote:
>
>> Zope itself gives a method for sorting strings:
>> DocumentTemplate.sequence.sort. Many of the products relies on that for
>> sorting. And that sorts UTF-8 incorrectly
>
>
> Then it will probably be easiest to just patch it up to sort correctly.
> Or file a bug in the collector.

A candidate for a reject. I pointed out that the sort method can not smell
your encoding. If you deal with encodings and deal with it in the right way
but don't expect that the underlying framework can smell or guess what kind
of encoding your application uses. Otherwise: use Python unicode strings
*only* and *overall*.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050424/32afffbe/attachment.bin


More information about the Zope mailing list