[Zope] ZCatalog and searching for german Umlaute

Christopher Petrilli petrilli@digicool.com
Mon, 25 Oct 1999 10:33:54 -0400


On 10/25/99 10:02 AM, Michael Gutmann at
gutmann@gutmann.rz.uni-duesseldorf.de wrote:

> Hi folks,
> 
> I've got a nasty problem with ZCatalog, that I cannot locate (localize :-).
> 
> I have DTML-Documents with the word "König" in a property (title) and in the
> body. If I enter "König" in a formfield named "suchwort" and search with
> Catalog.searchResults({'title':suchwort})
> or Catalog.searchResults({'raw':suchwort})
> the document, which is indexed and found using other words, is not found.
> 
> Even if I search explicitly after "König" like in
> Catalog.searchResults({'title':'König'})
> or Catalog.searchResults({'raw':'König'})
> the document won't be found.
> 
> This is Zope 2.0.1 with ZServer directly accessed (not via Apache) and
> LC_ALL=de is set (and exported ;-) on an UltraSPARC with SunOS 5.7.
> 
> Anybody any idea in this specific case? I must admit, that this is a very
> serious problem for our site and makes it hard for me to convince my
> users of the excellence of Zope. Well, I am convinced, though. But tell
> them that ... 

You'll need to run with the CVS repository, I believe, and use the
localication settings in it.  The problem is that currently as distributed,
Zope does not consider letters such as the sharp-S, etc., to be word
components, so it get split into 'K' and 'nig' :-)

Sorry, we're trying to resolve these issues, but need some international
people to help out.  Perhaps Michel can answer more as he wrote the ZCatalog
internationalization components.

Chris
-- 
| Christopher Petrilli        Python Powered        Digital Creations, Inc.
| petrilli@digicool.com                             http://www.digicool.com