本帖最后由 anwar2065 于 2012-06-06 23:30:44 编辑

解决方案 »

  1.   

    你的 singerpagedate.php 文件中保存的是 GBK 编码的序列化数据
    出现乱码是因为你把项目的编码由 gbk 改成了 utf-8将以下代码放在你贴出的代码的
    <?php
    require_once '../include/adminfunction.php';
    之间,执行你的程序即可。执行一次后即可删除$s = file_get_contents("../data/singerpagedate.php");
    $s = iconv('gbk', 'utf-8', $s);
    $s = preg_replace('/s:(\d+):"([^"]+)/e', '($n=strlen("$2"))==$1?"$0":"s:$n:\"$2"', $s);
    file_put_contents("../data/singerpagedate.php", $s);