got another problem using open of ifstream or fopen or whatever on a file in my filesystem.
My program isn't able to open these files, they are encoded ... strange? At least for me
When doing a 'dir' in the console where the files are, this is the output:
28.08.2009 09:52 3'016 r├╝mm├╝k_000080118887.sdtid
26.11.2009 16:04 3'063 ├ä├û├£├Â├ñ├╝_000080118889.sdtid
When redirection the output to a file and opening it with notepad, this is the output:
28.08.2009 09:52 3'016 rümmük_000080118887.sdtid
26.11.2009 16:04 3'063 ÄÖÜöäü_000080118889.sdtid
When looking at them in the explorer it looks like in the picture attached. I've got a standard english Win XP installed, nothing special. The files were made by a third party product, I can't change the way they are encoded, and I can't rename them by hand as I need to run an automation on many of these files...
This is my code I use to open the file.
Anybody an idea?...
int convert_file(char *fname)
//printf ("Locale is: %s\n", setlocale(LC_ALL,NULL) );
if(input.is_open() == false)
cout << "File could not be opened!" << endl;