title: Convert CSV to multi dimensional array in Javascript
body: <p>I'm reading data from a CSV file using jQuery's Ajax function. I have been using a Jquery plugin called <a href="http://js-tables.googlecode.com/svn/trunk/jquery.csv.min.js" rel="nofollow">Jquery CSV</a> to convert the data into an array, but in Internet Explorer the array is returning different keys for some reason.</p>
  
  <p>The code for the ajax call and the plugin processing the data was:</p>
  
  <pre><code>var ourOffices = new Array();
  $.get(pathToData, function(data) {
     ourOffices = jQuery.csv("|")(data);
  });
  </code></pre>
  
  <p>Can someone point me in the right direction to coding this conversion without a plug in.</p>
  
  <p>The fields are separated by '|' . Each record is on a new line, of which there are 300. Also of note, which might be why the first plugin misbehaves, is that some of the data in the CSV contain special characters, like accents. </p>
  
  <p>Thanks.</p>
  
  <p>p.s. I would supply some example data, but its not appropriate to do so, sorry.</p>