i have multidimensional arrays generated by PHP with data from database ,but i have chars like \"č ć š đ ž\" and when i try to output that in json he just returns null , i d
I met this problem as well and in 2016 you don't need to create a function, just use 'mb_convert_variables'
mb_convert_variables('UTF-8', 'original encode', array or object)
For anyone who meet this situation, too.