weixin_33696106 2016-05-09 14:01 采纳率: 0%
浏览 66

$ .Ajax接受所有字符集

i call this $.ajax method :

$.ajax({
    type: 'POST',
    data: JSON.stringify(data),
    contentType: 'application/json',
    url: 'http://46.101.209.16/endpoint',
    success : function(etichettas) {
        console.log(etichettas);

        var blob = new Blob([etichettas], {type: "application/pdf"});
        saveAs(blob, "Label.pdf");
    }//SUCCESS
});

and the "etichettas" is a pdf. the problem is that some chars : ���� how can i set the ajax call to see the original chars and don't chane it in � ? sorry for bad english, i'm tialian (:

  • 写回答

0条回答 默认 最新

    报告相同问题?