I have UTF-8 text file , that I'm reading using simple :
ifstream in("test.txt");
Now I'd like to create a new file that will be UTF-8 encoding or Unicode.
How can I do this with ofstream
or other?
This creates ansi Encoding.
ofstream out(fileName.c_str(), ios::out | ios::app | ios::binary);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…