
- PHP文件插入header(“Content-type: text/html; charset=utf-8”);
- 相当于html页面里面的<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
- mysql_query(“SET NAMES ‘utf8′”); //查询输出要使用utf8的编码格式
未经允许不得转载:Parallels Desktop for Mac » php header utf8 插入header(“Content-type: text/html; charset=utf-8”);