title: Read ANSI files in Web file-system-access API
body: <p>I am trying to get files using file-system-access API and it works good using this code:</p>
  <pre><code>function Process_Files(files) {
      [].map.call(files, async function (file, i) {
          if (isDataFile(file.name)) {
              let fileText = await file.text();
              let filePath = await file.webkitRelativePath;
              ProcessFileContents(await fileText,await filePath);
          }
      })
  }
  function DirectoryChose(event) {
  
      let files;
      event.stopPropagation();
      event.preventDefault();
  
  
      if (event.type === &quot;change&quot;) {
          files = event.target.files;
      }
  
      if (files) {
          Process_Files(files)
      }
  }
  
  dropArea.addEventListener(&quot;change&quot;, DirectoryChose);
  </code></pre>
  <p>the problem is when we have an ANSI encoded file then the German Characters like Ö, Ü, and Ä become �
  while it works perfect with UTF-8 encoded files.</p>
  <p>I couldn't find anyway to read files using <code>file.text()</code> in ANSI code</p>
  <p>thanks for help</p>