且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将整个网站文件的字符编码更改为UTF-8?

更新时间:2023-11-27 12:36:16

您是否尝试过.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