tags:

views:

37

answers:

1

Hi,

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.

+2  A: 

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".

David Dorward
can you please more clarify with some examples
MKS
The links include bucket loads of examples. There seems little point in providing more until you explain why those are inadequate.
David Dorward
+1 That nicely sums it up.
karim79
So either the previous and live versions send different content-type headers or the data is being changed by the CMS (possibly as it gets pushed through the database). Fix you (unspecified) CMS.
David Dorward
everything seems fine only problem it that my pound sign is appearing like this £225, a special character is coming before my pound sign.
MKS
Something is changing the encoding of your data, or otherwise corrupting it.
David Dorward