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.
mysqlデータベースにいくつかの特殊文字がありますが、それをその文字の対応する記号に変換したいと思います。Äこれは文字であり、対応する記号はĐです。これをphpまたはmysqlに変換するにはどうすればよいですか?
それを試してみてください:http://php.net/manual/fr/function.utf8-decode.php
http://php.net/manual/fr/function.utf8-decode.php
この関数は、UTF-8 でエンコードされていると想定されるデータを ISO-8859-1 にデコードします。
または:htmlentities($var, ENT_QUOTES, 'UTF-8');
htmlentities($var, ENT_QUOTES, 'UTF-8');