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

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

    Use £. I had the same problem and solved it using jQuery:

    $(this).text('£');
    
    • If you try this and it does not work, just change the jQuery methods,
    $(this).html('£');
    
    • This always work in all contexts...

提交回复
热议问题