I have URL: https://example.com/hello?param=first:last
. I expect that it should be percent-encoded as https://example.com/hello?param=first%3Alast
. But Qt leaves it as-is. My code:
QUrl url("https://example.com/hello?param=first:last");
printf("Encoded: %s\n", url.toEncoded().constData());
How should I encode colon? Manually format parameter with QString::toPercentEncoding
?