Answer the question
In order to leave comments, you need to log in
Zend Search encoding. How to setup?
If you search in Cyrillic, then the
iconv_strlen() error appears: Detected an illegal character in input string
File /protected/vendor/Zend/Search/Lucene/Search/QueryLexer.php(342)
string
342: $strLength = iconv_strlen($inputString, $encoding);
Zend_Search_Lucene_Analysis_Analyzer::setDefault(
new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsensitive ()
);
echo mb_detect_encoding($term);
- UTF-8
Answer the question
In order to leave comments, you need to log in
Have you looked at what exactly is passed to $inputString and $encoding in line 342?
Are you using the latest version of Zend_Search_Lucene?
<?php
// Попробуйте добавить эту строку:
Zend_Search_Lucene_Search_QueryParser::setDefaultEncoding('utf-8');
Zend_Search_Lucene_Analysis_Analyzer::setDefault(
new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8_CaseInsensitive ()
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question