I know that json_encode requires UTF-8 encoding, and I already use this, but in my attempt to pass a php array to javascript, I can not transfer the data as it is.
I put them for test on the html page with a null template, between the JS tags.
$arrs=array("kağıtşim","üğçöşiö"); echo 'data_labels=json_encode($arrs);';
There is nothing wrong as I know; UTF-8 file without charset specification - UTF-8 Headers set to UTF-8 There is nothing to do with DB
How can I return this json_encode conversion
json javascript jquery php
Erdinç Çorbacı Nov 15 2018-12-15T00: 00Z
source share