致命错误:无法从检测到的编码“utf - 32le”转换脚本


Fatal error: Could not convert the script from the detected encoding "UTF-32LE"

将一个工作网站从一台服务器复制到另一台服务器,现在我得到这个错误-浏览到网站的主页面

Fatal error: Could not convert the script from the detected encoding "UTF-32LE" 
  to a compatible encoding in /usr/local/share/zf/library/Zend/Application.php 
  on line 320

全局httpd-error.log显示,服务器正在运行其他vhost,但很确定这与上面的错误有关。

[notice] child pid 8012 exit signal Segmentation fault (11)

服务器都运行FreeBSD 8.1,一个32位(有错误),另一个64位。刚刚更新了有错误的Apache和PHP的最新版本,可在Ports-catalog中找到。更新前也出现错误

请注意,我复制的意图是使用一个新的网站的大部分,所以一直在做一些删除文件,但应该不会对上面的错误有任何影响。

为了解决这个问题,我不得不再次删除所有内容,从原始服务器下载带有网站的tar文件到我的mac。在我的mac上提取,并通过FTP上传到新服务器-现在错误消失了。