11-10-2016, 01:14 PM
if i replace with you get UTF-8 to work, but i suppose the first one need to be there too
Code:
array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET SESSION sql_mode = ''"));
Code:
array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")