Jeevan
Jeevan

Reputation: 3938

apostrophe is not correctly rendered in IE

I have some html content with apostrophe inside a div, It renders correctly in all other browsers other than IE. You will get a clear idea from the screen-shot

On other browsers

enter image description here

On IE

enter image description here

I have searched enough and found issues like apostrophe shown as '. I think this is not similar to that issue.

Can anyone help?

Upvotes: 2

Views: 3663

Answers (2)

Alex Wayne
Alex Wayne

Reputation: 187034

Your page needs utf-8 headers. Your server should be serving pages with:

Content-Type: text/html;charset=utf-8

Or you can place it with a meta tag

<meta http-equiv="Content-Type" content="text/html;charset=utf-8">

Or just serve your content with html entities instead

He&apos;s not feeling well.

Upvotes: 1

Andrew Leach
Andrew Leach

Reputation: 12973

In your case, IE has not been told to use UTF-8 encoding. I believe it's in the menu View>Encoding but there should also be a <meta> tag specifying it in the page.

Upvotes: 1

Related Questions