Action::fetch乱码,咋办

浏览:673 发布日期:2013/11/08 分类:求助交流
public function header()
    {
        
        //判断session
        $online=true;

        if($online)
        {
            $content = $this->fetch('Public:header_online');
        }
        else 
        {
            $content = $this->fetch('Public:header_offline');
        }
        $this->show($content);
        return $content;
    }
header_online.html和header_offline.html都是用utf-8无bom编码,直接display输出时,中文正常。如果是fetch解析再输出,就乱码了。

求助。。
最佳答案
评论( 相关
后面还有条评论,点击查看>>