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

前端 未结 7 1281
暖寄归人
暖寄归人 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:12

    If you are editing HTML in Notepad you should use "Save As" and alter the default "Encoding:" selection at the botom of the dialog to UTF-8. you should also include-

    This un-ambiguously sets the correct character set and informs the browser.

提交回复
热议问题