dede问答模块个人信息页面回答列表乱码的解决方


dede问答模块个人信息页面回答列表乱码,遇到这样的问题,大家很束手无策,

 

 

话不多说,直接发布解决方法(感谢small提供技术)

修改/ask/control/myask.php 找到137行左右,gb2utf8 去掉即可。

//他人问题
    function ac_ask()
    {
        $mid = request('mid', '');
        $mid  = is_numeric($mid)? $mid : 0;
        $sql = "SELECT * FROM `yx_ask` WHERE uid = '{$mid}' AND status >= 0 LIMIT 10";
        $this->dsql->SetQuery($sql);
        $this->dsql->Execute();
        $feeds = array();
        while ($row = $this->dsql->GetArray()) {
            $row['htmlurl'] = "?ct=question&askaid=".$row['id'];
            $row['senddate'] = MyDate('Y-m-d H:i',$row['dateline']);
            $row['title'] = ($row['title']);
            $feeds[] = $row;
        } 
        $output = json_encode($feeds);
        print($output);  
    }