[Zope] charset FAQ

Toby Dickenson tdickenson at geminidataloggers.com
Thu Nov 20 05:38:42 EST 2003


On Wednesday 19 November 2003 21:58, Ulrich Wisser wrote:

> probably this is a FAQ, in that case please point me to some
> documents to enlight me. :)

Yes, embarrasingly it is a FAQ. The Zope Developer Guide Editor still hasnt 
included the sections that covers this.

Please see:

http://www.zope.org/Members/htrd/howto/unicode-zdg-changes
http://www.zope.org/Members/htrd/howto/unicode

> How do you handle this?

In short:

* Use unicode data type for your data internally.
* Use dtml to compute the page content as a unicode string.
* Set the Content-Type header to tell ZPublisher to encode your unicode
  data as utf-8 over the network.

If you find that character set considerations are not handled automagically, 
then you are doing something wrong.


-- 
Toby Dickenson




More information about the Zope mailing list