title: How to restrict files to UTF-8 encoded only in Angular file upload?
body: <p>I am using ng-file-upload to upload a text file.</p>
  
  <pre><code>&lt;span type="file" class="btn" ngf-select ng-model="fileUser" name="fileUser" ngf-pattern="'.txt,.TXT'" ngf-accept="'text/plain'"&gt; Select File &lt;/span&gt;
  </code></pre>
  
  <p>Is there any way to accept only UTF-8 encoded text file and reject any othe r type of encoding?</p>