I have a little problem of not being abble to retrieve csv response.
There is a csv available here link to csv
I am trying to retrieve this data, however there is a problem with special characters in the reponse.
I successfuly recieve the data but then jQuery tries to decode it and through a syntax error: My request is:
$.ajax({
url: 'http://toolserver.org/~daniel/WikiSense/Contributors.php?wikilang=en&wikifam=.wikipedia.org&page=Cloud+computing&since=&until=&grouped=on&order=-edit_count&max=1000&order=-edit_count&format=csv',
dataType: "script",
success: function(data){
alert('success');
},
error: function(test1, test2, test3) {
alert('error');
}
});
The error is (pointing at % character)
SyntaxError: syntax error
1004+%28922%2F82%29,SamJohnston,2008-07-26+09%3A40,2013-03-07+18%
I also tried to set the dataType to text in order to not decode the data. In this case I get an error for the ajax request.
$.ajax({
url: 'http://toolserver.org/~daniel/WikiSense/Contributors.php?wikilang=en&wikifam=.wikipedia.org&page=Cloud+computing&since=&until=&grouped=on&order=-edit_count&max=1000&order=-edit_count&format=csv',
dataType: "text",
success: function(data){
alert('success');
},
error: function(test1, test2, test3) {
alert('error');
}
});
I tried to experiment with .ajax() parameters contentType, dataType, scriptCharset etc. It does not help.