摘要:
//让中文URL不变成乱码void encodeURI(QString str, QByteArray &outArr){ QTextCodec *codec = QTextCodec::codecForName("UTF-8"); if(codec->canEncode(str)) { QByteArray tmpArr; tmpArr = codec->fromUnicode(str); for(int i=0,size = tmpArr.length();i<size;i++){ ... 阅读全文