title: Converting file in UTF-8 to UTF-16
body: <p>A program in C++ needs to read a file that is encoded in utf-8. Unfortunately, using char* it cannot get extended characters (☺☻♥♦•◘ and so on), and wchar_t* interprets them wrongly. My algorithm to manage it is:</p>
  
  <p>1) Make a new file</p>
  
  <p>2) Name it to [original name]Utf-16</p>
  
  <p>3) Copy original file to new, making a conversion simultaneously</p>
  
  <p>4) Extract data.</p>
  
  <p>5) Delete this temporary file when it's no longer needed.</p>
  
  <p>I'm stuck at 3), is there somewhere a function like "FileUTF8toUTF16"?</p>