I've read a few answers on here about reading Unicode files etc and most people point to UTF8-CPP or iconv.
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?
If so any suggestions how I would go about it?