0

如何修复此错误?

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 字段中。

附言

使用此代码处理输入

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

我正在使用 PHP 5.2.17 和 Zend Framework 1.12.0

4

0 回答 0