Why can't I display a pound (£) symbol in HTML?

前端 未结 8 987
醉酒成梦
醉酒成梦 2020-12-09 01:07

I\'m trying to display the pound symbol in HTML (from PHP) but all I get is a symbol with a question mark.

The following are things that I\'ve tried.

In PHP:

8条回答
  •  余生分开走
    2020-12-09 01:47

    You need to save your PHP script file in UTF-8 encoding, and leave the in the HTML.

    For text editor, I recommend Notepad++, because it can detect and display the actual encoding of the file (in the lower right corner of the editor), and you can convert it as well.

提交回复
热议问题