QTextCodec *codec = QTextCodec::codecForName("CP1251"); QString xmlContent = codec->toUnicode(content.data());