Reputation: 7707
I have meta tag as given below:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/>
<meta name="keywords" Content="“SAT Course†“SAT exam†“SAT Prep†“SAT Preparation Courseâ€" />
<meta name="description" Content="Take Kaplan’s SAT preparation course. We use proven score raising strategies and give you access to 4 practice tests so you can take the test with confidence." />
<meta name="copyright" Content="Copyright Kaplan Test Prep and Admissions 2008" />
<meta name="Content-language" Content="en-uk" />
<meta name="Distribution" Content="global" />
<meta id="tcm" name="TMCID" Content="tcm:55-7918-64"></meta>
it was working fine but after some changes it start behaving differently. it is not showing special character properly some extra text is added on the page.
I have tried using charset='utf-8'.
Please suggest! what can be reason behind this.
Upvotes: 0
Views: 8710
Reputation: 944445
The character set you have used to save the HTML in does not match the character set the browser thinks is being used. Check your editor to find out what you are really using.
I recommend setting it to UTF-8. This is a well supported encoding that supports just about any character you are likely to use, along with a large number that you aren't.
Note that the encoding you specify using meta tags does not override any encoding specified in real HTTP headers sent by your webserver. See http://www.w3.org/International/O-HTTP-charset for advice on how to change it.
As an aside, if you mean the language is "British English" then you want "en-gb" not "en-uk".
Upvotes: 4