Blob
で読み込んで、 FileReader#readAsText
を使おう!対応状況
var xhr = new XMLHttpRequest;
xhr.responseType = 'blob';
xhr.open(method, url);
xhr.onloadend = function() {
var fr = new FileReader;
fr.onloadend = callback.bind(fr, fr.result);
fr.readAsText(xhr.response, encoding);
};
xhr.send(params);
iOS6, Android3.0以上だけの案件に使える。