1

What is happening to the following HTML snippet when opened in Chrome?:

<p class="MsoNormal" style="margin:0in 0in 0pt"><font face="Calibri" size="3">Attached is a summary of the annual financial report for Company A’s retirement Plan

plans.

When open this page in Chrome and view source I see:

<p class="MsoNormal" style="margin:0in 0in 0pt"><font face="Calibri" size="3">Attached is a summary of the annual financial report for Company A’s retirement Plan

plans.

Notice the replacement of

with

’

I know this is some character encoding issue but my google search reveal little.

10

1 Answer 1

2

Thanks in part to both @deceze and this SO question it looks like I just need this meta tag at the top of the HTML file:

<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
3
  • 4
    Or the much shorter and easier to remember <meta charset='utf-8'> (if you are writing HTML5 documents). See this other SO question.
    – Chris
    Commented Jun 28, 2013 at 13:14
  • 1
    You should actually rather be setting the Content-Type HTTP header, which takes precedence.
    – deceze
    Commented Jun 28, 2013 at 13:26
  • Found this one valuable. Thanks! Gave it a +1.
    – joatd
    Commented Apr 13, 2023 at 0:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.