Hi. Here's a new approach/workaround for use with PhpDig 1.6.5.
In the config.php file set the following:
PHP Code:
define('PHPDIG_ENCODING','windows-1251');
// give functions something trivial to do
$phpdig_string_subst['windows-1251'] = 'Q:Q,q:q';
// remove word wrapping in the below line
$phpdig_words_chars['windows-1251'] = '[:alnum:]ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞß*áâãäåæçèéêëì*îïðñòóôõö÷øùúûüýþÿ';
In addition, in the robot_functions.php file is a phpdigIndexFile function.
In the phpdigIndexFile function replace:
PHP Code:
global $common_words,$relative_script_path,$s_yes,$s_no,$br;
with the following:
PHP Code:
global $phpdig_words_chars,$common_words,$relative_script_path,$s_yes,$s_no,$br;
Also, in the phpdigIndexFile function replace:
PHP Code:
if (strlen($key) > SMALL_WORDS_SIZE and strlen($key) <= MAX_WORDS_SIZE and !isset($common_words[$key]) and ereg('^[0-9a-zßðþ]',$key))
with the following:
PHP Code:
if (strlen($key) > SMALL_WORDS_SIZE and strlen($key) <= MAX_WORDS_SIZE and !isset($common_words[$key]) and ereg('^['.$phpdig_words_chars[PHPDIG_ENCODING].']',$key))
Remember to remove any "word" wrapping in the above code and use PhpDig 1.6.5 if not used already.
Also you will need to index from scratch for the changes to take effect.
Please let me know how this method works for you.