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.
URL取得リクエストで来るデータベースに韓国語のテキストを挿入する必要があります。ただし、挿入された値は MySQL では認識されません。迅速な指示が必要です。ありがとう。
setlocale(LC_CTYPE, 'ko_KR.utf8'); mb_internal_encoding("UTF-8"); mb_http_output('utf-8'); $p_text = rawurldecode($_GET["text"]);
mysql接続の直後にこのクエリを作成します
$mysqli->query("SET NAMES 'UTF8'");
また
mysql_query("SET NAMES 'UTF8'");
また、フィールドにutf8_general_ci照合があることを確認してください
utf8_general_ci