title: How to output extended ascii characters using Oracle utl_file
body: <p>I was writing files using</p>
  
  <pre><code>l_file := utl_file.fopen('OUT', 'a.txt', 'w');
  utl_file.put_line(l_file, 'Rosëttenville');
  </code></pre>
  
  <p>but I changed this to </p>
  
  <pre><code>l_file := utl_file.fopen_nchar('OUT', 'a.txt', 'w', 32767);
  utl_file.put_line_nchar(l_file, 'Rosëttenville');
  </code></pre>
  
  <p>when I found out that the extended ASCII (characters above code 127) were not written out correctly. However the second unicode version also does not write the extended characters correctly. Instead of Rosëttenville I'm getting RosÃ«ttenville. Anyone know how to fix this?</p>