title: Delete special characters from an ng-repeat list (parsed from CSV)
body: <p>I've made a table with AngularJS with data that I'm parsing from an CSV file.<br>
  I'm using <a href="https://www.papaparse.com/" rel="nofollow noreferrer">Papa.Parse</a> for this.</p>
  
  <p>I'm doing an <strong>ng-repeat</strong> of some names, but as the CSV file has characters that people introduce by their own. Sometimes there are spaces or other special characters that end up looking like this in the table:</p>
  
  <p><a href="https://i.stack.imgur.com/Nneeb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nneeb.png" alt="enter image description here"></a></p>
  
  <p>How can I delete that "question mark symbol" in my table?</p>
  
  <p>my code isn't anything from other world:</p>
  
  <pre><code>Papa.parse("People.csv", {
      download: true,
      header: true,
      skipEmptyLines: 'greedy',
      complete: function(results) {
          $scope.items = results.data;
      }
  });
  
  &lt;table&gt;
     &lt;tr&gt;
        &lt;th&gt;Name&lt;/th&gt;
     &lt;/tr&gt;
     &lt;tr ng-repeat="item in items"&gt;
        &lt;td&gt;{{ item.Name }}&lt;/td&gt;
     &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <hr>
  
  <p>Okay, so I found a method for this, here's the answer:</p>
  
  <pre><code>Papa.parse("People.csv", {
      download: true,
      header: true,
      encoding: 'utf-8', //&lt;---- this did nothing
      skipEmptyLines: 'greedy',
      complete: function(results) {
          $scope.items = results.data;
          var items = $scope.items;
  
          items.forEach(function(item, index) {
  
            //I tried to replace the weird character with this but it didn't work on IE (I need it to work in there)
            //item.Name = item.Name.replace(/\uFFFD/g, '');
  
            //So I did it this way, I tell only the character that I allow to show and to erase any other
            item.Name = item.Name.replace(/[^a-z0-9 ,.?!]/ig, '');
          });
      }
  });
  </code></pre>