QTextCodec::ConverterState state;
QTextCodec *codec = QTextCodec::codecForName("UTF-8");
QString msg = codec->toUnicode(readContent, readContent.size(), &state);
if (state.invalidChars > 0)
{
msg = QTextCodec::codecForName("GBK")->toUnicode(readContent);
}