Possible Duplicate:
How to open an std::fstream (ofstream or ifstream) with a unicode filename?
I have a string encoded in UTF-16 and I want to create a file, where the name of the file would be this string.
UTF-16LE string looks like:
At first I want to make sure that system sees and displays correctly this name.
I try:
char *output=some address (points to memory where line is held)
ofstream out(output);
out.close();
On output I don't get proper name.
It looks like:
For creating of the highlighted file I appended UTF-16LE mark, not highlighted file was created using just raw UTF-16 line - none of approaches works.
Are there some ways to create files with UTF-16LE names in Windows using only C++ functionality without WinApi (CreateFilew)?
My compiler is MinGW 4.0.4, Windows XP (but I want it to be working on all Windows)
Thanks in advance for any tips!