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

前端 未结 8 982
醉酒成梦
醉酒成梦 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:57

    Educated guess: You have a ISO-8859-1 encoded pound sign in a UTF-8 encoded page.

    Make sure your data is in the right encoding and everything will work fine.

提交回复
热议问题