PHP字符集不起作用 [英] php character set not working
问题描述
我的php网站的字符集出现问题.
我的php文件中包含以下代码:
Hi,
I am having problems with the character set of my php website.
I have the following code in my php file:
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
并且我的.htaccess文件中包含以下内容
and i have the following in my .htaccess file
AddType ''text/html; charset=ISO-8859-1'' html
但是,当我用firebug测试我的网站时,它说我需要指定一个字符集.我使用了错误的字符集还是做错了其他事情?
如果您有萤火虫并且想要自己测试我的网站,则我的网站的网址是:
http://www.dewsburysgc.co.uk
在此先感谢所有对我有帮助的人
hamza
But when I test my website with firebug, it says that I need to specify a character set. am I using the wrong character set or am I doing something else wrong?
if you have firebug and want to test my website yourself, the url of my website is:
http://www.dewsburysgc.co.uk
Thanks in advance to everyone who helps me
hamza
推荐答案
Content-type:
标头也应包含字符集-检查default_charset [
The Content-type:
header should contain the character set too - check the default_charset[^] ini option.
这篇关于PHP字符集不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!