[Zope3-dev] Issue 124 in the collector.
Martijn Faassen
faassen at infrae.com
Thu Feb 12 14:52:08 EST 2004
Jim Fulton wrote:
> >The Python you're using when running zope3 should have
> >sys.defaultencoding set to 'utf' and not 'ascii'.
>
> Absolutely, positively not!
>
> We will not change the default encoding in Zope 3. This would
> be a bug magnet.
>
> Conversion to and from unicode is done by the publishing
> layer. Application code should always deal with unicode.
> Application code should almost never encode or decode strings.
> If it does, it needs to specify an encoding.
Exactly. :)
In addition, if an application is dealing with other sources of string
data besides the publisher (for instance a relational database, or
a file), the same care should be taken to decode these into unicode before
these enter into your application.
Regards,
Martijn
More information about the Zope3-dev
mailing list