Mar*_*ark 2 php encoding
echo $name给了我Mount Kimbie — Carbonated.
echo $name
Mount Kimbie — Carbonated
我怎么得到Mount Kimbie — Carbonated?
Mount Kimbie — Carbonated
&mdash,引号和其他东西应该被解码成常规符号.
我都试过htmlspecialchars_decode($name)和html_entity_decode($name),他们不工作.
htmlspecialchars_decode($name)
html_entity_decode($name)
mar*_*rio 11
您可能缺少charset参数:
html_entity_decode($name, 0, "UTF-8");
根据PHP版本,假设Latin-1,它不包含mdash.
mdash
归档时间:
12 年,8 月 前
查看次数:
739 次
最近记录: