Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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)
おそらくcharsetパラメーターが不足しています:
html_entity_decode($name, 0, "UTF-8");
PHP のバージョンによっては、Latin-1 が想定されていましたが、これにはmdash.
mdash