zuixian113 2018-01-15 22:19:58 2200次浏览 0条回复 1 1 0

1、Controller文件中使用echo 输出中文出现乱码时,在方法中添加下述代码:

header("Content-Type:text/html; charset=utf-8");

2、在View文件中输出中文出现乱码时,在方法中添加下述代码:

<?php
header("Content-Type:text/html;charset=utf-8");
?>
觉得很赞
    没有找到数据。
您需要登录后才可以回复。登录 | 立即注册