Hello,

I have a text file that is encoded in some "Unicode format". I do not know which Unicode this might be (in fact I don't know anything about Unicode at all, to be honest).
When I open this file in my editor (the old Crimson Editor under WinXP) I have to manually set the encoding type to "Unicode Encoding". Only then I can read the file content.

What I really want to do is to read the file content in a Qt based application.
The following code prints only one cryptic line. The line looks like *â– 2.
Qt Code:
  1. QFile logFile("C:\\cl.txt");
  2. logFile.open( QIODevice::ReadOnly );
  3. QString line = logFile.readLine();
  4. while( !logFile.atEnd() ) {
  5. qout << line; // qout is a QTextStream working on stdout
  6. line = logFile.readLine();
  7. }
To copy to clipboard, switch view to plain text mode 
The file does not contain special characters. The whole file content could easily be treated as pure ASCII text. But it is in some Unicode encoding.
How can I read the file content?