title: Perl code Save ANSI encoding format xml file into UTF-8 encoding
body: <p>I need to change the encoding format of a file from ANSI to UTF-8... Please suggest me to complete this, I have done using some methods. But it didn't work. Herewith I have written the   code, which I have did.</p>
  
  <pre><code>use utf8;
  use File::Slurp;
  
  $File_Name="c:\\test.xml";
  $file_con=read_file($File_Name);
  
  open (OUT, "&gt;c:\\b.xml");
  binmode(OUT, ":utf8");
  print OUT $file_con;
  close OUT;
  </code></pre>