QTextCodec *utf8 = QTextCodec::codecForName("UTF-8");
QTextCodec *gbk = QTextCodec::codecForName("GBK");
QString str = "请上车";
qDebug()<<"str:"<<str.toLatin1().toHex()<<"\ngbk:"<<gbk->fromUnicode(utf8->toUnicode(str.toLatin1())).toHex();
QTextCodec *gbk = QTextCodec::codecForName("GBK");
QString str = "请上车";
qDebug()<<"str:"<<str.toLatin1().toHex()<<"\ngbk:"<<gbk->fromUnicode(utf8->toUnicode(str.toLatin1())).toHex();