Hello, probably this is a FAQ, in that case please point me to some documents to enlight me. :) Our web application needs to be updated over the web, store text in PostgreSQL and show the data again. (The usual) Our users will enter data through the web or by file upload. The data will be in Latin-1, Latin-2 and Hebrew (to start with). There for the output will be in these charsets too. How do you handle this? I already have problems with translations to German. Some of my menus will not display the German special characters. I use "pure" Zope (no CMF/Plone), with DTML, Localizer. TIA Ulrich
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
participants (2)
-
Toby Dickenson -
Ulrich Wisser