QTextCodec *codec = QTextCodec::codecForName("ISO 8859-5");QByteArray encodedString = codec->fromUnicode(string);