Zend Lucene搜索 - 非法字符问题

时间:2013-01-23 07:05:22

标签: zend-framework lucene special-characters

如何解决此错误?

A PHP Error was encountered
Severity: Notice
Message: iconv() [function.iconv]: Detected an illegal character in input string
Filename: Common/Utf8.php
Line Number: 77

A PHP Error was encountered
Severity: Notice
Message: iconv() [function.iconv]: Detected an illegal character in input string
Filename: Lucene/Field.php
Line Number: 222

这些是我输入的字符。

ŸeÈ╬fý↔5ƒ1

我尝试保存到lucene字段。

P.S。

使用此代码处理输入

htmlentities($input, ENT_COMPAT, 'UTF-8');

我正在使用PHP 5.2.17和Zend Framework 1.12.0

0 个答案:

没有答案