money_format()函数显示 而不是本地货币符号(磅)

dot*_*tty 1 html php encoding character-encoding

有谁知道为什么money_format()显示 而不是英镑符号(£).

该函数在我的本地服务器上运行正常,但是当我将其上传到我的远程服务器时如果渲染不正确.

有谁知道解决方案?

Sco*_*own 5

你需要使用£,而不是£

可以在http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references找到以这种方式受影响的完整字符列表.

  • 尝试`setlocale(LC_MONETARY,'en_GB.UTF-8');` (6认同)