title: Reading From A File Which Contains Unicode Characters
body: <p>I have this huge file which contains unicode strings at the beginning (first ~10,000 character or so) 
  I don't care about the unicode part, parts I'm interested aren't unicode but whenever I try to read those parts I get <code>'='</code>, and if I were to load the entire file to char array and write to to some temporary file (without altering the data) with <code>ofstream</code> I get incorrect data actually all I get is a text file filled with <code>Í</code> If I were to remove the unicode part manually everything works fine, So it seems <code>ifstream</code> cannot deal with streams which contains unicode data, but if this assumption is true, is there any way to work on this file  introducing a new library to my project?</p>
  
  <p>Thanks,</p>
  
  <p>EDIT: Here's a sample code, program reads from this file which contains characters (some, not all) that can't be represented in ASCII.</p>
  
  <pre><code>ifstream inFile("somefile");
  inFile.seekg(0,ios_base::end);
  size_t size = inFile.tellg();
  inFile.seekg(0,ios_base::beg);
  char *book = new  char[size];
  inFile.read(book,size);
  for (int i = 0; i &lt; size; i++) {
    cout &lt;&lt; book[i] &lt;&lt; " " &lt;&lt; i &lt;&lt; endl; //book[i] will always be '='
  }
  ofstream outFile("TEST.txt");
  outFile.write(book,size);
  outFile.close();
  </code></pre>