jQuery获取请求多语言内容

Working on a multilingual site - Danish , German , French , Norway content.

I am facing problems parsing AJAX get requests with multi-lingual content.

$.get("scheduler.php?ch_id=<?php echo $_SESSION['chid'] ?>", function (data) {
     console.log(data); // console outputs `nothing` when unable to parse foreign language
});

I tried to encode the content in scheduler.php :

//$name = htmlentities(utf8_encode($name), ENT_QUOTES);
//$name = utf8_encode(htmlentities($name,ENT_NOQUOTES,'utf-8'));
//$name = mb_convert_encoding($name, "UTF-8", "HTML-ENTITIES");
//$name = iconv("windows-1250","UTF-8",$name);
//$name = utf8_encode($name);

none of the above encodings work.