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.
正しいエンコーディングを設定していますか?
utf8の文字がಠの表記に変換されている可能性はありますか? その文字列に対して htmlspecialchars を再度呼び出すと、& が & になり、そのため utf8 コードではなくなります。これは double-encode パラメータを false に設定することで防ぐことができます。php.net のドキュメントを参照してください。
http://php.net/htmlspecialchars