|
|
От: |
sheep2k
|
|
| Дата: | 21.07.12 09:29 | ||
| Оценка: | |||
QFile f("c:/tmp/test.koi8");
if (f.open(QIODevice::ReadOnly))
{
QByteArray ba = f.readAll();
QTextCodec* codec = QTextCodec::codecForName("KOI8-R");
if (codec)
qDebug() << codec->toUnicode(ba);
}