[Zope-Checkins] CVS: Zope3/lib/python/Zope/PageTemplate - TALES.py:1.3

Stephan Richter srichter@cbu.edu
Fri, 14 Jun 2002 15:00:33 -0400


> I've heard this recommendation again, and I still don't understand
> what you expect this to buy us.  I've checked, and there's not a
> single non-ASCII character in the entire Zope 3 Python source, so it
> would have no impact.

Not necessarily in the code, but the data we save. Let's say you mix at som=
e=20
point some info from the source and the data storage *be it ZODB or gettext=
=20
file). If your strings are not in the right format you run in all sorts of=
=20
problems. I guess only developers who have been in unicode hell once,=20
understand... :-)

> And what makes a text string? =20

Good question. That needs to be well defined and really depends on several=
=20
factors. The easiest way is to check whether a string cane ever contain=20
unicode chars.

> Is a filename a text string?

Well, can filenames contain unicode characters?

> A Python attribute name? =20

No, sinc ethey can only contain ASCII.

> An XML attribute name?

Definitely, since the XML standard says that everything in XML can contain=
=20
unicode strings. (I think.)

Regards,
Stephan
=2D-=20
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training