ZCatalog and foreign characters
Hello, is it possible to make ZCatalog work correctly with words containing characters other then those given in ISO-8859-1. Now, it reports "no found" for all such queries even when these words are present inside the documents on site. Thank you, Radim
Radim Gelner wrote:
is it possible to make ZCatalog work correctly with words containing characters other then those given in ISO-8859-1.
With some hacking, maybe :S Is it just me or is the Catalog and the BTree implementation gettign a little long in the tooth? cheers, Chris
On Tue, 29 Aug 2000, Radim Gelner wrote:
is it possible to make ZCatalog work correctly with words containing characters other then those given in ISO-8859-1.
Yes, I did it very simply. You have to patch file lib/python/SearchIndex/Splitter.c very slightly. Just add line: #include <locale.h> somewhere beside include lines (~ line 86) and line: setlocale(LC_ALL, "pl_PL"); in function initSplitter, line no. ~493. It works for polish characters, and all other characters in iso-8859-2 set, so it should satisfy you :) P.S. You need to compile it, of course: gcc --shared -O2 Splitter.c -I/usr/include/python1.5 -o Splitter (include path for RH Linux) Probably you will need some include files from source distribution. ololo@zeus.polsl.gliwice.pl /--------------------------------------\ | `long long long' is too long for GCC | \--------------------------------------/
participants (3)
-
Aleksander Salwa -
Chris Withers -
Radim Gelner