Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Good day, collagues!
I want to encode part of my HTTP POST request, which contains XML. I try this:
@post_data.append(QUrl(xml_array).toEncoded());@
But ampersands hadn't been encoded. How can I automatically encode ampersands and other URL reserved characters?
Hmm, it seems that I should read documentation more carefully:
@QByteArray toPercentEncoding ( const QByteArray & exclude = QByteArray(), const QByteArray & include = QByteArray(), char percent = '%' ) const@