あなたのmysql設定はOKと思われます。
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
さらに、mysql列の文字タイプを確認してください。文字セットは 'utf8'にする必要があります
私はすでにBOMなしでPHPファイルを保存していただければ幸いですか?そうでない場合はhereにチェックしてください。
EDIT: 1.あなたの3つのラインコードと線の下に置き換えます
mysql_query("SET character_set_results = 'utf8'");
mysql_query("character_set_client = 'utf8'");
mysql_query("character_set_connection = 'utf8'");
mysql_query("character_set_database = 'utf8'");
2.設定文書ヘッダー::
header("content-type: text/html; charset=utf-8");
をこの方法のように
<?php
// Send a raw HTTP header
header ('Content-Type: text/html; charset=UTF-8');
// Declare encoding META tag, it causes browser to load the UTF-8 charset before displaying the page.
echo '<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />';
// Right to Left issue
echo '<body dir="rtl">';
?>
hereから解決策としてさらに多くのオプションを適用できます。上記の説明があなたの問題を解決したことを願っています。
テーブルの列の種類varcharまたはnvarcharを意味しますか? –
column type = varchar –
列nvarcharを作成し、クエリを使用します。 –