...qDebug() << "friendlyName = " << str.toLatin1(); ...
QString str1, str2;QTextCodec *codec = QTextCodec::codecForName("Windows-1251");str1 = codec->toUnicode(str2);
... HKEY hKey = 0; char fname[256] = {0}; DWORD cData = sizeof(fname);...... LONG ret = RegQueryValueExA(hKey,"FriendlyName",0,0,(LPBYTE)fname,&cData);...... return QString(fname);
C++ (Qt)QTextCodec *codec = QTextCodec::codecForName("Windows-1251");return codec->toUnicode(fname);
C++ (Qt)QTextCodec *codec = QTextCodec::codecForName("cp866");qDebug() << "friendlyName = " << codec->fromUnicode(str);