header(
'Content-Type: text/html; charset=utf-8'
);
mysql_connect(
$
servidor,
$usuario
,
$senha
);
mysql_select_db(
$
database);
mysql_query(
"SET NAMES 'utf8'"
);
mysql_query(
'SET character_set_connection=utf8'
);
mysql_query(
'SET character_set_client=utf8'
);
mysql_query(
'SET character_set_results=utf8'
);
http://rmonte.com/blog/acentuacao-no-php-e-mysql-com-utf-8/