如题 我需要把用户输入的汉字转换成百度的url编码格式(貌似百度的url编码是utf-8),最后返回这个url字符串
今天第二次提问了,求教
------解决方案--------------------
QString & QString::append ( const QByteArray & ba )
This function overloads append().
Appends the byte array ba to this string. The given byte array is converted to Unicode using the fromAscii() function.
You can disable this function by defining QT_NO_CAST_FROM_ASCII when you compile your applications. This can be useful if you want to ensure that all user-visible strings go through QObject::tr(), for example.