solve problem utf8 for arabic

solve problem utf8 for arabic

destinydzdestinydz Posts: 1Questions: 1Answers: 0

I was problem in datatables it read arabic from datatables utf8 like question mark ??????
and finally i solved the problem by changing in file php in editor-php "\php\Database\Driver\Mysql\Query.php"
from:
$pdo = @new PDO(
"mysql:host={$host};{$port}dbname={$db}".self::dsnPostfix( $dsn ),

to:
$pdo = @new PDO(
"mysql:host={$host};{$port}dbname={$db};charset=utf8".self::dsnPostfix( $dsn ),

This discussion has been closed.