static const char enc[8] = "UTF_FSS"; //Жестко задается кодировка...QByteArray ba;ba.resize(usr.length() + pass.length() + sizeof(enc) + 6);int i = -1;ba[++i] = isc_dpb_version1; //Пользовательba[++i] = isc_dpb_user_name; ba[++i] = usr.length();memcpy(ba.data() + ++i, usr.data(), usr.length());i += usr.length();//Парольba[i] = isc_dpb_password;ba[++i] = pass.length();memcpy(ba.data() + ++i, pass.data(), pass.length());i += pass.length();//Кодировкаba[i] = isc_dpb_lc_ctype;ba[++i] = sizeof(enc) - 1;memcpy(ba.data() + ++i, enc, sizeof(enc) - 1);i += sizeof(enc) - 1;//коннект к серверуQString ldb;if (!host.isEmpty()) ldb += host + QLatin1Char(':'); ldb += db; isc_attach_database(d->status, 0, const_cast<char *>(ldb.toLatin1().constData()), &d->ibase, i, ba.data());....