2012-10-04 99 views

回答

8

您有一個編碼問題。 html_entity_decode默認輸出iso-8859-1。而你的?我假設你正在使用utf-8。

試試這個:html_entity_decode('à', ENT_COMPAT, 'utf-8')

-1
html_entity_decode(utf8_decode('’')); 
+0

'utf8_decode( '’ ')'不會改變字符串,你的代碼是一樣的'html_entity_decode(' ’')' - 它不會以這種方式工作。 – Sven

+0

@謝謝了很多 – chokrijobs