I am having trouble with the output of json_encode. I need to output Russian characters.
In my database table only russian characters. In the output I am getting only
mb_convert_encoding($str, 'UTF-8', 'auto');
You need to set
UTF8 before retrieving results from mysql.
Just before you retrieve results from
albums table, fire below query:
mysqli_query($con, 'SET names UTF8');
After this you can fetch your album results:
$query = "select * from albums;"; $result = mysqli_query($con, $query);