V
Vlad
I have one problem. The company uses files with contents in German
language but stored in Central European DOS-encoding (852). The
problem is to write a program which converts it to windows-1252
encoding (default encoding on m machine).
I wrote a simple code (VC++):
ifstream old;
locale loc("German_Germany.852");
old.imbue(loc);
old.open(oldName);
ofstream newf(newName);
newf << old.rdBuf();
newf.close();
old.close();
But it doesn't convert anything!
What's wrong?
language but stored in Central European DOS-encoding (852). The
problem is to write a program which converts it to windows-1252
encoding (default encoding on m machine).
I wrote a simple code (VC++):
ifstream old;
locale loc("German_Germany.852");
old.imbue(loc);
old.open(oldName);
ofstream newf(newName);
newf << old.rdBuf();
newf.close();
old.close();
But it doesn't convert anything!
What's wrong?