[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: International characters



> The site is in Hebrew (charset=iso-8859-8-i also known as
> Hebrew-Windows and Logical Hebrew).
> When running a search I get a message "The query "<query terms>"
> doesn't contain any words and thus will take too much time. Please
> refine your query. "
> 
> What should I do?

I am not sure if this is the only problem your configuration has, but
you definitely need to ensure that the locales are set properly before
you do a search. You probably also need to ensure that the shell you
are usingas /bin/sh is 8-bit-clean. The GNU bash is, but I am not so
sure about the Bourne shell in commerical Unix variants.

In order to configure the locales properly, you need to edit
/cgi-bin/webglimpse and add the stuff as shown in the example for a
German locale below. 

Put this after the line that contains "$ENV{'PATH'} = ..." near the
beginning of the file. Remember to change 'de_DE' to the name of your
Hebrew locale.


# This will tell glimpse to use locales
$ENV{'LANG'} = 'de_DE';
$ENV{'LC_ALL'} = 'de_DE';

# Use the next line if your Hebrew locale is in a nonstandard
# location. Otherwise delete it, or glimpse  and perl won't find the locales.
$ENV{'LOCPATH'} = '/usr/share/locale';

# This will tell perl to use locales (also very important!)
use locale;
require POSIX;
POSIX::setlocale(LANG, 'de_DE');
POSIX::setlocale(LC_ALL, 'de_DE');  


Hope this helps a little
- Christian