QTextCodec* codec = QTextCodec::codecForName("CP1251"); QTextCodec::setCodecForTr(codec); QTextCodec::setCodecForCStrings(codec); QTextCodec::setCodecForLocale(codec); setlocale(LC_ALL,"");
qCompanyList.record().field("name").value().toString().toLatin1()