I have a non-english word e.g 'परीक्षण' in database.I fetch the data from slim framework (Php) and the code is :
while($row=$result->fetch_assoc()){
$data[]=$row;
}
return $response->withStatus(200)
->withHeader('Content-Type', 'application/json')
->write(json_encode($data));
The response is for e.g;
[{"s.n":"1","english_word":"test","nepali_word":"???????"}]
Could someone please tell me how can I send the non-english word in Json from php?