money_format() function showing � instead of local currency symbol (pound)
Does anyone have any idea why money_format()
is showing � instead of pound sign (£).
The function performs fi开发者_JS百科ne on my local server, but when I upload it to my remote server if renders incorrectly.
Does anyone know a solution?
You need to use £
, not £
A full list of characters affected in this way can be found at http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
Related: php remove/identify this symbol �
Quoted from Gumbo
The character � is the REPLACEMENT CHARACTER (U+FFFD). It is used when there was an error within an UTF code:
FFFD � REPLACEMENT CHARACTER
used to replace an incoming character whose value is unknown or unrepresentable in Unicode
精彩评论