title: JavaScript blob encoding as UTF-8 instead of ANSI
body: <p>I use a JavaScript blob to create an FDF file which opens &amp; fills in a locally stored PDF.</p>
  
  <p>However, the file path to the locally stored PDF contains an accented character (and I am unable to edit the folder name).</p>
  
  <p>This code works when the folder path doesn’t contain an accent and if I open the fdf in Notepad, the default encoding is ANSI. But when the folder path contains an accent, the FDF opens to a message stating the PDF cannot be found. Furthermore, the default encoding in Notepad has changed to UTF-8.</p>
  
  <pre><code>FDF_Text = ''
      + '%FDF-1.2' + "\n"
      + '1 0 obj&lt;&lt;/FDF&lt;&lt;/F(T:/Échange/MY_PDF.pdf)/Fields 2 0 R&gt;&gt;&gt;&gt;' + "\n"
      + 'endobj' + "\n"
      + '2 0 obj[' + "\n" 
      + '&lt;&lt;/T(FIELD_NAME)/V(SOME_TEXT)&gt;&gt;' + "\n"
      + ']' + "\n" 
      + 'endobj' + "\n"
      + 'trailer' + "\n"
      + '&lt;&lt;/Root 1 0 R&gt;&gt;' + "\n"
      + '%%EO'
  
  
  var blobObject = new Blob([FDF_Text], {type: 'text/css;charset=ANSI'}); 
  window.navigator.msSaveOrOpenBlob(blobObject, 'MY_FDF.fdf');
  </code></pre>
  
  <p>I have tried </p>
  
  <ul>
  <li>replacing É with E</li>
  <li>using String.fromCharCode(201) (the chr value for É)</li>
  <li>changing &amp; removing the "type" of the blob itself to several different examples I've found (sorry I didn't keep track of all the different combinations).  </li>
  </ul>
  
  <p>Can anyone suggest a different solution?</p>