【发布时间】:2012-02-02 09:44:16
【问题描述】:
我没有发现任何违法行为 - 对可能存在的问题有何建议?
if (strtolower($matches[1]) != 'utf-8') {
var_dump($matches[1]);
$xml = iconv($matches[1], 'utf-8', $xml);
$xml = str_replace('encoding="'.$matches[1].'"', 'encoding="utf-8"', $xml);
}
下面是我的调试/错误
string(12) "windows-1252"
Notice (8): iconv() [http://php.net/function.iconv]: Detected an illegal character in input string [APP/models/sob_form.php, line 16]
我已经验证了上面的代码确实是第16行
【问题讨论】:
-
@2astalavista 值得在这里写下作为答案。