Mysql
 sql >> Database >  >> RDS >> Mysql

Problemi con PHP mysql charset utf8

Prova questo

<?php

   header('Content-Type: text/html; charset=utf-8');
?>

e poi nella connessione

<?php
 $dbLink = mysql_connect($argHost, $argUsername, $argPassword);
    mysql_query("SET character_set_results=utf8", $dbLink);
    mb_language('uni'); 
    mb_internal_encoding('UTF-8');
    mysql_select_db($argDB, $dbLink);
    mysql_query("set names 'utf8'",$dbLink);
?>