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

前端 未结 8 943
醉酒成梦
醉酒成梦 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.

    0 讨论(0)
  • 2020-12-09 02:02

    Or for other code equivalents try:

    £
    £
    
    0 讨论(0)
提交回复
热议问题