title: C++ File Reading Library - ANSI and Unicode
body: <p>I've read a few answers on here about reading Unicode files etc and most people point to UTF8-CPP or iconv.</p>
  
  <p>None of the libraries that I found work for both ANSI and Unicode files, ideally I want one function which I pass a filename to and it will return the contents of that file and it won't matter what the encoding is, or is that not possible?</p>
  
  <p>If so any suggestions how I would go about it?</p>