2012-10-04 59 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