国外Linux主机空间出现乱码的解决

1、将网页另存为UTF-8格式
2、如果是HTML文件,加入[coolcode][/coolcode]
3、如果是PHP文件,加入[coolcode]header(“content-Type: text/html; charset=gb2312”);[/coolcode]
或者修改.htaccess,加入[coolcode]AddDefaultCharset off
AddType text/html;charset=gb2312 html[/coolcode]

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据