javascript - AJAX Import of certain text fiiles produces strange output on Firefox -
i trying import clients .txt file turned js array using ajax call. call works fine on chrome , safari when import file , console log in firefox - see result:
if copy of contents of file , paste new .txt file i've created, errors don't display.
normally wouldn't issue, client has 6000 of these .txt files use. there should putting in ajax call correct these odd character additions?
this current code, reduced core functionality brevity:
$(document).ready(function () { $.ajax({ url: "./data/words.txt", success: function (csvd) { console.log(csvd); }, datatype: "text", complete: function () { // levelselect(); } }); });
Comments
Post a Comment