title: Firefox 52: Javascript parseFloat not working with UTF-16 strings
body: <p>I have been trying to read the contents of a UTF-16 file in Firefox v52 with this:</p>
  
  <pre><code>$.ajax({
      type: "GET",
      url: "downloads/dg_mare_piwik_social.csv",
      dataType: "text",
      success: function(data) {
  
          // Split the lines
  
          var lines = data.split('\n');
          for (var i = 1, len = lines.length; i &lt; len; ++i) {
              var items = lines[i].split(',');
              console.log(items[0], Number.parseFloat(items[1]));
          }
  });
  </code></pre>
  
  <p>The problem is that in the console I get <code>NaN</code> from the <code>parseFloat(items[1])</code>.
  This happens only in Firefox, all other browsers get the number with that.</p>
  
  <p>How can I get it to work? How can I get the number from a UTF-16 string?</p>