header("Content-type:text/html;charset=utf-8"); 输出数据前插入以上代码,以utf-8格式输出,避免乱码 转载于:https://www.cnblogs.com/klj123wan/p/3216503.html