mysql_query("SET NAMES UTF8");
「connection.php」の最後にこの行を追加すると、問題が解決しました。
私の接続ファイルの完全なコードは次のとおりです。
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_test = "localhost";
$database_test = "test";
$username_test = "username";
$password_test = "password";
$test = mysql_pconnect($hostname_test, $username_test, $password_test) or trigger_error(mysql_error(), E_USER_ERROR);
mysql_query("SET NAMES UTF8");
?>
私のデータベース照合は「utf8_general_ci」です。
ページは「dreamweaver デフォルト utf8」と「Unicode 正規化形式=C (Canonical Decomposition)」です。