Zend Framework

Detected an illegal character in input string

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor 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

Activity

Hide
Alexander Veremyev added a comment -

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);

Show
Alexander Veremyev added a comment - 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);
Hide
Bill Karwin added a comment -

Changing fix version to 0.6.0.

Show
Bill Karwin added a comment - Changing fix version to 0.6.0.
Hide
Alexander Veremyev added a comment -

Is covered by new encoding processing functionality.

Details are described in documentation and FW-General.

Show
Alexander Veremyev added a comment - Is covered by new encoding processing functionality. Details are described in documentation and FW-General.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: