Apostrophes showing as ’ in html

If you’re building a webpage and you’re seeing characters like ’ when you expect to see ', there is a good chance you are not using the correct charset for '. In this situation you likely want to be using UTF-8.

In an expanded example lets say you have this sentence you’re trying to render as HTML text:

It's the dog's day.

But after rendering you’re seeing this on the page:

It’s the dog’s day.

In this case try adding a <meta> tag with the charset property to your markup as a child node to the <head> tag.

<html lang="en">
    <meta charset="UTF-8" />