ERROR when sabe utf8 on mysq pdo code example
Example: PDO encode result recordset to utf8
function utf8_encode_recordset($recordset)
{
return array_map(function($record) {
return array_map("utf8_encode", $record);
}, $recordset);
}