1、在php mvc的控制器里面或php页面
echo 'metahttp-equiv=content-typecontent=text/html; charset=utf-8>';
2、在php页面或html页面
metahttp-equiv=content-typecontent=text/html; charset=utf-8>
使用header函数
在控制器或页面里面
header(content-type:text/html; charset=utf-8);
附录:当遇到一个页面两种编码的时候,有可能是html文件和引入的js、css文件之间编码不匹配,可以在引入标签中添加charset选项来解决这个问题。
').addclass('pre-numbering').hide(); $(this).addclass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadein(1700); }); });
版权声明:欢迎转载、分享、交流!
以上就介绍了php页面编码设置的方法,包括了a标签方面的内容,希望对php教程有兴趣的朋友有所帮助。
