php pdo mssql utf8 encode data 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);
}