I'm using json_encode($data)
to an data array and there's a field contains Russian characters.
I used this mb_detect_encoding()
to display what encoding it is for that field and it displays UTF-8.
I think the json encode failed due to some bad characters in it like "ра▒". I tried alot of things utf8_encode
on the data and it will by pass that error but then the data doesn't look correct anymore.
What can be done with this issue?