Hi all,
I have a file encoded using utf16. I want to convert the content in Latin1 encoding, so I try to do it using InputStreamConverter. As you guess, that doesn't work :
- - - - - - - - - - - - -
ifstream file("C:\APutf-16.csv", fstream::binary);
UTF16Encoding utf16Encoding;
Latin1Encoding latin1Encoding;
InputStreamConverter converter(file,utf16Encoding,latin1Encoding,'°');
cout << "XXXXXXXXXX UTF16 to LATIN1 conversion XXXXXXXXX" << endl << endl;
stringstream stream;
stream << converter.rdbuf();
cout << stream.str() << endl;
- - - - - - - - - - - - -
The output prints an empty string. I suppose I'm wrong somewhere, but I don't know where. Can anybody help me ?
Thanks in advance.





