The £ sign is shown as a diamond with a question mark in the middle

前端 未结 2 1496
广开言路
广开言路 2021-01-29 13:33

I\'m creating a webapp which involves displaying financial data to the user. Being from the UK and using GBP £ for currency, this character is used a lot.

However, every

2条回答
  •  太阳男子
    2021-01-29 14:23

    A portable way of writing this in HTML as an entity is £ or in the general case by its character code £ or £ £. This way, your source is plain 7-bit ASCII, so basically independent of encoding (ignoring esoterics like EBCDIC etc). See also http://www.fileformat.info/info/unicode/char/a3/index.htm

提交回复
热议问题