Ok i am using cURL to get information but the problem is sometimes it returns the data in chinese or japanese(not sure), i was returning this information using Ajax (jquery) and it displayed it like this (see image link below)
[img]
Now im outputing it without ajax and it doesnt return it correctly, im wanting to find out what jquery does to convert this and do it within PHP
[img]
The main problem is i dont know what this text is encoded with ive tried many functions and googling around but simply cant find an answer, im guessing i will need a set of decode functions then htmlentities it but i dont know the order
few functions ive tried, these are not in any order btw
[code=php]
//$string = utf8_decode($string);
//$string = html_entity_decode($string);
//$string = utf8_encode($string);
//$string = mb_convert_encoding($string, ‘UTF-8’, ‘HTML-ENTITIES’);
//$string = mb_convert_encoding($string, “UTF-8”, “auto”);
//$string = utf8_decode($string);
//$string = html_entity_decode($string);
Thanks in advance