The input is the QString encoding of Windows-1251 . I need to write it in QVector<quint8> with the possibility of further extraction under the codec СР866 .
This option did not help.
QByteArray msg; msg.append(strInWindows1251); QTextCodec *codec = QTextCodec::codecForName("Windows-1251"); QString res = codec->toUnicode(msg); Moreover, the size of the line increases (it was 8 became 15). Replacing Windows-1251 with CP866 didn't help either
Kokozyabra appears only in the presence of Cyrillic.
Thank you for your help.