Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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">

and i have the following in my .htaccess file

AddType 'text/html; charset=ISO-8859-1' html


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
Posted
Updated 12-Jun-11 8:42am
v5

1 solution

The Content-type: header should contain the character set too - check the default_charset[^] ini option.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900