如何将整个网站文件的字符编码更改为UTF-8? [英] How to change an entire website's files' character encoding to UTF-8?
本文介绍了如何将整个网站文件的字符编码更改为UTF-8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将所有php/css/js文件更改为utf字符编码?我无法通过其他方式对其进行验证.
How can I change all of my php/css/js files to utf character encoding? I can't get it to validate otherwise.
推荐答案
您是否尝试过.htaccess选项"AddCharset".它应该可以在.htaccess文件所在的父目录以及所有子目录上工作.
Have you tried the .htaccess option "AddCharset". It should work on the parent directory of where the .htaccess file is located plus all sub directories.
AddCharset UTF-8 .php
http://www.w3.org/International/questions/qa-htaccess-charset
这篇关于如何将整个网站文件的字符编码更改为UTF-8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文