Why do symbols like apostrophes and hyphens get replaced with black diamonds on my website?

前端 未结 7 1249
暖寄归人
暖寄归人 2020-12-08 13:27

A website I\'ve made has a few problems... On one of the pages, wherever there\'s an apostrophe (\') or a dash (-), the symbol gets replaced with a

7条回答
  •  温柔的废话
    2020-12-08 14:09

    Look at your actual html code and check that the weird symbols are not originating there. This issue came up when I started coding in Notepad++ halfway after coding in Notepad. It seems to me that the older version of Notepad I was using may have used different encoding to Notepad's++ UTF-8 encoding. After I transferred my code from Notepad to Notepad++, the apostrophes got replaced with weird symbols, so I simply had to remove the symbols from my Notepad++ code.

提交回复
热议问题