아래 예제 소스에서 굵게 표시한 부분에 주의하면 해결된다.
1. 데이터베이스를 만들 때 utf8로 설정
2. 테이블을 만들 때 utf8로 설정
3. 쿼리를 날리기 전에 "set names 'utf8'" 쿼리 먼저 날리기(select할 때 등도 포함)
참고 : http://php.net/manual/en/function.mysql-client-encoding.php

$query = "create database grade CHARACTER SET utf8 COLLATE utf8_general_ci";
mysql_query($query) or die (mysql_error());
$db_status = mysql_select_db('grade');
mysql_query("set names 'utf8'");  // it's important thing.
$query = "CREATE TABLE student_2 (
student_number smallint unsigned not null,
student_name char(9) charset utf8 not null,
grade_pl tinyint unsigned not null,
grade_wp tinyint unsigned not null,
grade_cs tinyint unsigned not null,
grade_sp tinyint unsigned not null,
grade_sum smallint unsigned not null,
grade_avg float unsigned not null,
grade_rank tinyint unsigned,
primary key(student_number)
)";
mysql_query($query) or die (mysql_error());
AND