ThinkPHP 乱码问题
看下面代码:classIndexActionextendsAction{ publicfunctionindex() { hea...
看下面代码:class IndexAction extends Action{ public function index() { header("Content-Type:text/html; charset=GB2312"); $Test = new TestModel(); $list = $Test->findAll(); echo " "; //$this->assign('title','ThinkPHP 示例'); //$this->assign('list',$list); $this->assign('title','ThinkPHP示例'); $this->assign('list',$list); $this->display(); }}---------------------------------------------------------------得到的结果是这样的:这样的乱码问题怎么解决?
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询