RE: [Zope] ZCatalog and searching for german Umlaute
-----Original Message----- From: Michael Gutmann [mailto:gutmann@gutmann.rz.uni-duesseldorf.de] Sent: Monday, October 25, 1999 10:02 AM To: zope@zope.org Subject: [Zope] ZCatalog and searching for german Umlaute
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.
Zope 2.0.1 does not come with the localization code, the next release (and the CVS, and Chris mentioned) will. You are doing everything correctly, you just need to be using the new Catalog. If you're daring, you can check out a CVS copy and replace 2.0.1's lib/python/Products/ZCatalog with the checkout. Note that you will also need to replace the contents of lib/python/SearchIndex. The new catalog will automatically sniff your LC_ALL env variable and call the posix function to set the locale. Now, whether or not this will do anything is yet to be tested. Perhaps you can help us with that. According to our analysis, it should work for you, but we are not in a position to put it to a real world test. -Michel
participants (1)
-
Michel Pelletier