void Convert(QString s,char *str){ static QTextCodec *codec = QTextCodec::codecForName("windows-1258"); QByteArray ba = codec->fromUnicode(s); memcpy( str, ba.data(), ba.size() ); str[ ba.size() ] = 0;}