2009/8/10 Andreas Jung <[email protected]>:
> I have *never* seen different behaviour. Internal storage format
> is unicode. Data accessed or modified through the accessor/mutator
> methods has to be encoded using the configured site-encoding.
> If you access field directly -> your code is broken (except when
> you are using FieldPropertys).

Archetypes is very much wrong doing this; encoding and decoding should
happen at the I/O boundaries. The number of times I have to
special-case Archetypes because it returns UTF-8 is ridiculous. The
reason Archetypes does this is purely historical, technically there is
no reason anymore (other than backwards compatibility) to not return
unicode.

-- 
Martijn Pieters

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to