[z3-five] unicodes and strings in Zope 2.9's ZPT with Zope 3's i18n
Roman Susi
rnd at onego.ru
Mon Jul 24 20:48:08 CEST 2006
Chris Withers wrote:
> Roman Susi wrote:
>
>> Maciej Wisniowski wrote:
>>
>>>> Well, I actually buckled and put a sitecustomize.py on the python
>>>> path that chanded the default codec from ascii to utf-8.
>>>>
>>> Is this possible to see that code? I'm very interested in it :)
>>
>>
>> I know people sometimes do it, but it makes code unportable
>
>
> How so? None of the code that could usefully be ported from this
> project relies on this fact (it all just runs off unicode), but the
> project specific code does, and I think that's a safe assumption to
> make, given what I've already stated...
http://blog.ianbicking.org/illusive-setdefaultencoding.html?version=1%3fversion%3d1
But perhaps my fears arent wellgrounded - I never used sitecustomize as
it somehow feels bad...
>> and could
>> cause other subtle problems.
>
>
> Such as? (or is this just goat/chicken worship?)
People more experienced than me warned against that (it was on the
Russian Python-Zope list
http://itconnection.ru/pipermail/zopyrus/2006-April/083160.html). Using
sitecustomize means it should be remembered somehow on each installation
and upgrade. If this is no problem - then it is no problem.
Roman
More information about the z3-five
mailing list