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:

enter image description here

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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -