[Zope] Re: [Docutils-develop] ReStructuredText now in Zope

Andreas Jung lists@andreas-jung.com
Fri, 16 Aug 2002 07:32:05 +0200


It is not an issue of Zope since you can store texts
with different encodings in Zope. I assume for
most english speaking or european users ISO-8859-1 the
prefered encoding (or ascii). But there is now way
to get the encoding of a text by "looking at the text".
For situations where you have texts with different encodings
it is necessary that the object containing the text has
a property that contains the encoding information. Using
sys.getdefaultencoding() usually returns "ascii" since
only few Zope/Python users change this value.

-aj

----- Original Message -----
From: "Richard Jones" <rjones@ekit-inc.com>
To: "Andreas Jung" <andreas@andreas-jung.com>; "Maik Jablonski"
<maik.jablonski@uni-bielefeld.de>; <zope@zope.org>
Sent: Thursday, August 15, 2002 23:33
Subject: Re: [Zope] Re: [Docutils-develop] ReStructuredText now in Zope


> On Thu, 15 Aug 2002 11:31 pm, Andreas Jung wrote:
> > This problem occurs when you try to convert non-ascii text
> > to unicode without specifying the used encoding. I have
> > not looked at the ReStructuredText product yet but there
> > should be some mechanism to specify the encoding for a text.
>
> There is - how do I determine the encoding from Zope?
>
>
>    Richard
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )