We want to keep encoding related properties. Unification to one
encoding(UTF-8) is too early to do.
Actually, current Plone 3.3 already enforce us to use UTF-8, since
some "utf-8" specification are hard-coded already.
We are forced to convert encoding from UTF-8 to Shift-JIS to support
Keitai(Japan local web savvy mobile phone).
We wish if Plone could support Shift-JIS natively, too.
Best for us is Plone has capability to allow various encoding for
stored data and templates.
Next best is that Plone has capability to allow various encoding for
output data with real-time encoding conversion mechanism.
English world may not have a problem since UTF-8 is upper compatible
to ASCII.
But, UTF-8 is not compatible to any previous encoding mapping. (eg.
Shift-JIS, euc_jp, ISO-2022-JP)
So, we have to convert them one by one with a mapping table.
Keitai is still using Shift-JIS for its web browser and e-mail.
Even though iPhone and Android are getting popularity, still Keitai is
dominant.
That means, most popular encoding for web browser(for PC and Keitai)
is Shift-JIS, which was designed for DOS.
Another annoying issue is e-mail encoding.
Since e-mail data stream needs to be 7-bit safe, official Japanese E-
mail text encoding is ISO-2022-JP,
which is using shift-out/shift-in escape sequence. (Taiwan use Big5
for e-mail)
So, we want to have following two properties.
- site default encoding (this may set to Shift-JIS for dedicated
Keitai application)
- e-mail encoding (even though all contents are in UFT-8, we may
need to set this to ISO-2022-JP)
Takeshi Yamamoto
On Sep 28, 2009, at 10:38 PM, Hanno Schlichting wrote:
> On Mon, Sep 28, 2009 at 2:17 PM, Gilles Lenfant
> <
[hidden email]> wrote:
>> Another thought: such things should be (IMHO) in a zope.conf section
>> (the ZConfig way)
>>
>> %import Products.CMFPlone
>> <plone>
>> charset utf-8
>> ...
>> </plone>
>>
>> This way, such configuration data are evaluated only at instance
>> startup. In addition, accessing such data is pretty faster than
>> reading the ZODB. I did such a thing to speed up iw.fss.
>
> Unfortunately we still very wildly support the "multiple instances per
> database" approach, which makes zope.conf wide configuration somewhat
> useless for us most of the time. Luckily plone.registry will be
> included in Plone 4.0 which gives a good abstraction for configuration
> data.
>
> On the matter of a site-encoding, the whole idea is deprecated
> anyways, as we'll have to move to storing all text as Unicode anyways
> in the mid-term.
>
> For applications storing data to the filesystem, I'd just keep it
> simple and say: utf-8 is the new ascii - configurable encoding schemes
> are too much hassle and you can just use utf-8 as a new default.
>
> Hanno
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart
> your
> developing skills, take BlackBerry mobile applications to market and
> stay
> ahead of the curve. Join us from November 9-12, 2009. Register
> now!
>
http://p.sf.net/sfu/devconf> _______________________________________________
> Plone-developers mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/plone-developers------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
Plone-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-developers