$link = mysql_connect('localhost', 'user', 'password');
mysql_set_charset('utf8',$link);

così?