2012年12月19日
摘要: //让中文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++){ ... 阅读全文
posted @ 2012-12-19 15:22 zhaowl 阅读(797) 评论(0) 推荐(0) 编辑