正向代码:
QString name = "ok"; name.toAscii().toHex().toInt(&ok, 16);
逆向代码:
QString name = "ok"; QByteArray b = QByteArray::number(name.toAscii().toHex().toInt(&ok, 16), 16); QByteArray b1 = QByteArray::fromHex(b); QString s = QString::fromAscii(b1);
文章的脚注信息由WordPress的wp-posturl插件自动生成