Hi i am trying to retrieve Arabic data from my database using php but all i got is questions marks .. the data stored fine in the database and the column type is nvarchar
I tried to put this code ini_set('mssql.charset', 'UTF-8');
in my php but still it is not working
Here is sample of my code: db_connect.php:
<?php
ini_set('mssql.charset', 'UTF-8');
$link=mssql_connect('SQL*******', 'username', 'password');
?>
get_about.php
<?php
include_once './db_connect.php';
$sql ="SELECT * FROM About";
$select = mssql_query($sql);
if ($select) {
while ($list = mssql_fetch_array($select)){
$output = $list;
}
print json_encode($output);
} else {
print json_encode('fail select');
}
?>