wifstream

does (w)ifstream support different encodings

When I read a text file to a wide character string (std::wstring) using an wifstream, does the stream implementation support different encodings - i.e. can it be used to read e.g. ASCII, UTF-8, and UTF-16 files? If not, what would I have to do? (I need to read the entire file, if that makes a difference) ...

iostream, wifstream, and eclipse/g++ on windows

I am using Eclipse on windows with the MinGW tool chain (g++, etc.). I have a program that I built on darwin that reads and writes to files using wifstream and wofstream. The program comiles and works find using eclipse on darwin (Mac)...no for my problem. When I move the code over to windows and try to build in using the MinGW tool c...