I've added a .rc file with an xml document containing a list of unit conversions. Here's some code:

Qt Code:
  1. QFile rc(":/data/units.xml");
  2. if(!rc.open(QIODevice::ReadOnly))
  3. {
  4. qDebug() << "File Error: " << rc.errorString();
  5. return;
  6. }
  7. QTextStream stream( &rc );
  8. qDebug() << "Start doc:";
  9. qDebug() << stream.readAll();
  10. qDebug() << "End doc";
  11. rc.close();
To copy to clipboard, switch view to plain text mode 

After a certain point, a few random characters come out and the stream ends prematurely.
Start doc:
"<unitlist>

<!-- couple dozen lines of xml i wrote-->

<utype name="ti‘Ð’Ëi€End doc

Any idea what could be causing this?