fingers Posted May 10, 2014 Share Posted May 10, 2014 In the connection scripts, the set charset functions use 'utf8' e.g. mysqli_set_charset($dbc, 'utf8'); (Script 9.2 - mysqli_connect.php) $mysqli->set_charset('utf8'); (Script 16.1 - mysqli_oop_connect.php) Is there a difference between 'utf8' and 'utf-8' ? Thanks Gary Link to comment Share on other sites More sharing options...
HartleySan Posted May 10, 2014 Share Posted May 10, 2014 They're the same, but for the argument you pass to set_charset, you have to use the string 'utf8'; 'utf-8', 'UTF8', etc. will not work. 1 Link to comment Share on other sites More sharing options...
fingers Posted May 12, 2014 Author Share Posted May 12, 2014 Thank you Link to comment Share on other sites More sharing options...
Recommended Posts