Why does a diamond with a questionmark in it � appear in my HTML?

前端 未结 4 572
予麋鹿
予麋鹿 2020-12-03 02:58

I have an unorder list, and � often (but not always!) appears where I have have two spaces between characters. What is causing this, and how do I prevent it?

4条回答
  •  被撕碎了的回忆
    2020-12-03 03:21

    It's a character-set issue. Get a tool that inspects the response headers of the server (like the Firebug extension if you're using Mozilla Firefox) to see what character set the server response is sending with the content. If the server's character-set and the HTML character set of the actual content don't match up, you will see some strange looking characters like those little black diamond squares.

提交回复
热议问题