Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.1.5
-
Fix Version/s: 0.8.0
-
Component/s: Zend_Search_Lucene
-
Labels:None
Description
The following notice is often found in my website logs. If this is not a bug, could the notice be supressed or sufficient checks put in place so that it is not raised.
[24-Aug-2006 11:03:51] PHP Notice: iconv() [<a href='function.iconv'>function.iconv</a>]: Detected an illegal character in input string in ZendFramework-0.1.5/library/Zend/Search/Lucene/Field.php on line 61
It means, that input string is not in current locale. In this case iconv can't converts all symbols correctly .
You should change current locale or convert string to ascii beforeadding it to the document. Like it described here - http://framework.zend.com/manual/en/zend.search.charset.html:
$docText = iconv('ISO-8859-1', 'ASCII//TRANSLIT', $docText);