码迷,mamicode.com
首页 > Web开发 > 详细

解决php中文乱码

时间:2014-10-29 18:59:32      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:style   color   ar   sp   文件   on   html   ad   size   

在文件的第一行,加入下面这一句:

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

然后在把文件以utf-8的格式保存起来就行了

解决php中文乱码

标签:style   color   ar   sp   文件   on   html   ad   size   

原文地址:http://www.cnblogs.com/tommy-huang/p/4060021.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!